zapit/audio_setup: add gui option for handling volume adjustment defaults

This commit is contained in:
martii
2013-06-21 10:39:46 +02:00
committed by Jacek Jendrzej
parent d7b496062c
commit 421da2c0cf
10 changed files with 106 additions and 9 deletions

View File

@@ -200,7 +200,7 @@ int CAudioSelectMenuHandler::doMenu ()
CVolume::getInstance()->SetCurrentPid(0);
int percent[p_count];
for (uint i=0; i < p_count; i++) {
percent[i] = CZapit::getInstance()->GetPidVolume(0, g_RemoteControl->current_PIDs.APIDs[i].pid);
percent[i] = CZapit::getInstance()->GetPidVolume(0, g_RemoteControl->current_PIDs.APIDs[i].pid, g_RemoteControl->current_PIDs.APIDs[i].is_ac3);
AudioSelector.addItem(new CMenuOptionNumberChooser(g_RemoteControl->current_PIDs.APIDs[i].desc,
&percent[i], i == g_RemoteControl->current_PIDs.PIDs.selected_apid,
0, 999, CVolume::getInstance()));