1
0
Fork 0
forked from len0rd/rockbox

Added function pointer argument to set_option(). This allows for instantaneous response from the AVC and Channels sound options

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2253 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-09-10 05:31:12 +00:00
parent 3b97474978
commit 75d77155dc
4 changed files with 32 additions and 20 deletions

View file

@ -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;
}