CMoviePlayerGui::selectAudioPid() add Analog Audio on/off option

This commit is contained in:
Jacek Jendrzej
2014-11-04 17:59:44 +01:00
parent 59ca850ecc
commit 592e0ed631

View File

@@ -45,6 +45,8 @@
#include <eitd/edvbstring.h>
#include <system/helpers.h>
#include <src/mymenu.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/timeb.h>
@@ -1241,7 +1243,13 @@ void CMoviePlayerGui::selectAudioPid()
0, 999, CVolume::getInstance()));
}
}
if (!g_settings.easymenu) {
APIDSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE));
extern CAudioSetupNotifier * audioSetupNotifier;
APIDSelector.addItem( new CMenuOptionChooser(LOCALE_AUDIOMENU_ANALOG_OUT, &g_settings.analog_out,
OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT,
true, audioSetupNotifier, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN) );
}
APIDSelector.exec(NULL, "");
delete selector;
printf("CMoviePlayerGui::selectAudioPid: selected %d (%x) current %x\n", select, (select >= 0) ? apids[select] : -1, currentapid);