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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 421da2c0cf
Author: martii <m4rtii@gmx.de>
Date: 2013-06-21 (Fri, 21 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-06-21 10:39:46 +02:00
committed by Jacek Jendrzej
parent 74905f63bf
commit c2d1b3968b
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()));