diff options
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 70a40e6691..d5881ab626 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -182,21 +182,29 @@ static Menu bass_boost(void) return MENU_OK; }; +static void set_chanconf(int val) +{ + mpeg_sound_set(SOUND_CHANNELS, val); +} + +static void set_avc(int val) +{ + mpeg_sound_set(SOUND_AVC, val); +} + static Menu avc(void) { - char* names[] = { "off", "2s ", "4s ", "8s " }; - set_option("AV decay time", &global_settings.avc, names, 4 ); - mpeg_sound_set(SOUND_AVC, global_settings.avc); + char* names[] = { "off", "2s", "4s", "8s" }; + set_option("AV decay time", &global_settings.avc, names, 4, set_avc ); return MENU_OK; } #endif /* ARCHOS_RECORDER */ static Menu chanconf(void) { - char *names[] = {"Stereo ", "Mono ", "Mono Left ", "Mono Right" }; + char *names[] = {"Stereo", "Mono", "Mono Left", "Mono Right" }; set_option("Channel configuration", - &global_settings.channel_config, names, 4 ); - mpeg_sound_set(SOUND_CHANNELS, global_settings.channel_config); + &global_settings.channel_config, names, 4, set_chanconf ); return MENU_OK; } |