mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/audio_setup.cpp: add option to set static volume on boot
This commit is contained in:
@@ -150,6 +150,7 @@ int CAudioSetup::showAudioSetup()
|
||||
|
||||
CMenuOptionChooser * as_oj_avsync = NULL;
|
||||
CMenuOptionNumberChooser * as_oj_vsteps = NULL;
|
||||
CMenuOptionNumberChooser * st = NULL;
|
||||
if (!g_settings.easymenu) {
|
||||
//av synch
|
||||
as_oj_avsync = new CMenuOptionChooser(LOCALE_AUDIOMENU_AVSYNC, &g_settings.avsync, AUDIOMENU_AVSYNC_OPTIONS, AUDIOMENU_AVSYNC_OPTION_COUNT, true, audioSetupNotifier);
|
||||
@@ -158,6 +159,9 @@ int CAudioSetup::showAudioSetup()
|
||||
//volume steps
|
||||
as_oj_vsteps = new CMenuOptionNumberChooser(LOCALE_AUDIOMENU_VOLUME_STEP, (int *)&g_settings.current_volume_step, true, 1, 25, NULL);
|
||||
as_oj_vsteps->setHint("", LOCALE_MENU_HINT_AUDIO_VOLSTEP);
|
||||
|
||||
st = new CMenuOptionNumberChooser(LOCALE_AUDIOMENU_VOLUME_START, &g_settings.start_volume, true, -1, 100, NULL, 0, -1, LOCALE_OPTIONS_OFF);
|
||||
st->setHint("", LOCALE_MENU_HINT_AUDIO_VOLSTART);
|
||||
//clock rec
|
||||
//CMenuOptionChooser * as_oj_clockrec new CMenuOptionChooser(LOCALE_AUDIOMENU_CLOCKREC, &g_settings.clockrec, AUDIOMENU_CLOCKREC_OPTIONS, AUDIOMENU_CLOCKREC_OPTION_COUNT, true, audioSetupNotifier);
|
||||
}
|
||||
@@ -194,6 +198,7 @@ int CAudioSetup::showAudioSetup()
|
||||
audioSettings->addItem(GenericMenuSeparatorLine);
|
||||
audioSettings->addItem(as_oj_avsync);
|
||||
audioSettings->addItem(as_oj_vsteps);
|
||||
audioSettings->addItem(st);
|
||||
//audioSettings->addItem(as_clockrec);
|
||||
}
|
||||
//---------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user