summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-01 13:41:03 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-01 13:41:03 +0000
commit674eaca5ef59625f90088da006eca4d10e2bea56 (patch)
treeb0f02cec358ce1c506fb6d2256e2db059c7b6b6a /apps/recorder/radio.c
parent88d5aab5a1098c5636584ddf06bd3012dc8c5b4c (diff)
downloadrockbox-674eaca5ef59625f90088da006eca4d10e2bea56.tar.gz
rockbox-674eaca5ef59625f90088da006eca4d10e2bea56.zip
Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 9acca539ee..fae01a7590 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -220,8 +220,8 @@ bool radio_screen(void)
220 global_settings.rec_prerecord_time); 220 global_settings.rec_prerecord_time);
221 221
222 222
223 mpeg_set_recording_gain(mpeg_sound_default(SOUND_LEFT_GAIN), 223 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
224 mpeg_sound_default(SOUND_RIGHT_GAIN), false); 224 sound_default(SOUND_RIGHT_GAIN), false);
225#endif 225#endif
226 226
227 curr_freq = global_settings.last_frequency * FREQ_STEP + MIN_FREQ; 227 curr_freq = global_settings.last_frequency * FREQ_STEP + MIN_FREQ;
@@ -356,9 +356,9 @@ bool radio_screen(void)
356 case BUTTON_UP: 356 case BUTTON_UP:
357 case BUTTON_UP | BUTTON_REPEAT: 357 case BUTTON_UP | BUTTON_REPEAT:
358 global_settings.volume++; 358 global_settings.volume++;
359 if(global_settings.volume > mpeg_sound_max(SOUND_VOLUME)) 359 if(global_settings.volume > sound_max(SOUND_VOLUME))
360 global_settings.volume = mpeg_sound_max(SOUND_VOLUME); 360 global_settings.volume = sound_max(SOUND_VOLUME);
361 mpeg_sound_set(SOUND_VOLUME, global_settings.volume); 361 sound_set(SOUND_VOLUME, global_settings.volume);
362 update_screen = true; 362 update_screen = true;
363 settings_save(); 363 settings_save();
364 break; 364 break;
@@ -366,9 +366,9 @@ bool radio_screen(void)
366 case BUTTON_DOWN: 366 case BUTTON_DOWN:
367 case BUTTON_DOWN | BUTTON_REPEAT: 367 case BUTTON_DOWN | BUTTON_REPEAT:
368 global_settings.volume--; 368 global_settings.volume--;
369 if(global_settings.volume < mpeg_sound_min(SOUND_VOLUME)) 369 if(global_settings.volume < sound_min(SOUND_VOLUME))
370 global_settings.volume = mpeg_sound_min(SOUND_VOLUME); 370 global_settings.volume = sound_min(SOUND_VOLUME);
371 mpeg_sound_set(SOUND_VOLUME, global_settings.volume); 371 sound_set(SOUND_VOLUME, global_settings.volume);
372 update_screen = true; 372 update_screen = true;
373 settings_save(); 373 settings_save();
374 break; 374 break;
@@ -548,8 +548,8 @@ bool radio_screen(void)
548 if(keep_playing) 548 if(keep_playing)
549 { 549 {
550 /* Enable the Left and right A/D Converter */ 550 /* Enable the Left and right A/D Converter */
551 mpeg_set_recording_gain(mpeg_sound_default(SOUND_LEFT_GAIN), 551 mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
552 mpeg_sound_default(SOUND_RIGHT_GAIN), false); 552 sound_default(SOUND_RIGHT_GAIN), false);
553 mas_codec_writereg(6, 0x4000); 553 mas_codec_writereg(6, 0x4000);
554 radio_set_status(FMRADIO_POWERED); /* leave it powered */ 554 radio_set_status(FMRADIO_POWERED); /* leave it powered */
555 } 555 }