From 674eaca5ef59625f90088da006eca4d10e2bea56 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 1 Apr 2005 13:41:03 +0000 Subject: 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 --- apps/recorder/radio.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'apps/recorder/radio.c') 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) global_settings.rec_prerecord_time); - mpeg_set_recording_gain(mpeg_sound_default(SOUND_LEFT_GAIN), - mpeg_sound_default(SOUND_RIGHT_GAIN), false); + mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN), + sound_default(SOUND_RIGHT_GAIN), false); #endif curr_freq = global_settings.last_frequency * FREQ_STEP + MIN_FREQ; @@ -356,9 +356,9 @@ bool radio_screen(void) case BUTTON_UP: case BUTTON_UP | BUTTON_REPEAT: global_settings.volume++; - if(global_settings.volume > mpeg_sound_max(SOUND_VOLUME)) - global_settings.volume = mpeg_sound_max(SOUND_VOLUME); - mpeg_sound_set(SOUND_VOLUME, global_settings.volume); + if(global_settings.volume > sound_max(SOUND_VOLUME)) + global_settings.volume = sound_max(SOUND_VOLUME); + sound_set(SOUND_VOLUME, global_settings.volume); update_screen = true; settings_save(); break; @@ -366,9 +366,9 @@ bool radio_screen(void) case BUTTON_DOWN: case BUTTON_DOWN | BUTTON_REPEAT: global_settings.volume--; - if(global_settings.volume < mpeg_sound_min(SOUND_VOLUME)) - global_settings.volume = mpeg_sound_min(SOUND_VOLUME); - mpeg_sound_set(SOUND_VOLUME, global_settings.volume); + if(global_settings.volume < sound_min(SOUND_VOLUME)) + global_settings.volume = sound_min(SOUND_VOLUME); + sound_set(SOUND_VOLUME, global_settings.volume); update_screen = true; settings_save(); break; @@ -548,8 +548,8 @@ bool radio_screen(void) if(keep_playing) { /* Enable the Left and right A/D Converter */ - mpeg_set_recording_gain(mpeg_sound_default(SOUND_LEFT_GAIN), - mpeg_sound_default(SOUND_RIGHT_GAIN), false); + mpeg_set_recording_gain(sound_default(SOUND_LEFT_GAIN), + sound_default(SOUND_RIGHT_GAIN), false); mas_codec_writereg(6, 0x4000); radio_set_status(FMRADIO_POWERED); /* leave it powered */ } -- cgit v1.2.3