armbox: rework AC3 and DTS passtrough

//vanhofen: this commit includes all following fixes and a small
new change in setting_helpers.cpp
This commit is contained in:
Frankenstone
2018-09-09 15:37:51 +02:00
committed by Thilo Graf
parent aab7e7d64d
commit 77230a0b90
8 changed files with 57 additions and 1 deletions

View File

@@ -154,6 +154,13 @@ int CAudioSetup::showAudioSetup()
CMenuOptionChooser * as_oj_ddsubchn = new CMenuOptionChooser(LOCALE_AUDIOMENU_DOLBYDIGITAL, &g_settings.audio_DolbyDigital, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
as_oj_ddsubchn->setHint("", LOCALE_MENU_HINT_AUDIO_DD);
#if HAVE_ARM_HARDWARE
CMenuOptionChooser * as_oj_ac3 = new CMenuOptionChooser(LOCALE_AUDIOMENU_AC3, &g_settings.ac3_pass, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
as_oj_ac3->setHint("", LOCALE_MENU_HINT_AUDIO_AC3);
CMenuOptionChooser * as_oj_dts = new CMenuOptionChooser(LOCALE_AUDIOMENU_DTS, &g_settings.dts_pass, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
as_oj_dts->setHint("", LOCALE_MENU_HINT_AUDIO_DTS);
#else
//dd via hdmi
CMenuOptionChooser *as_oj_dd_hdmi = NULL;
if (g_info.hw_caps->has_HDMI) {
@@ -164,6 +171,7 @@ int CAudioSetup::showAudioSetup()
//dd via spdif
CMenuOptionChooser * as_oj_dd_spdif = new CMenuOptionChooser(LOCALE_AUDIOMENU_SPDIF_DD, &g_settings.spdif_dd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
as_oj_dd_spdif->setHint("", LOCALE_MENU_HINT_AUDIO_SPDIF_DD);
#endif // HAVE_ARM_HARDWARE
CMenuOptionChooser * as_oj_avsync = NULL;
CMenuOptionNumberChooser * as_oj_vsteps = NULL;
@@ -227,9 +235,14 @@ int CAudioSetup::showAudioSetup()
audioSettings->addItem(as_oj_analogmode);
audioSettings->addItem(GenericMenuSeparatorLine);
//---------------------------------------------------------
#if HAVE_ARM_HARDWARE
audioSettings->addItem(as_oj_ac3);
audioSettings->addItem(as_oj_dts);
#else
if (g_info.hw_caps->has_HDMI)
audioSettings->addItem(as_oj_dd_hdmi);
audioSettings->addItem(as_oj_dd_spdif);
#endif // HAVE_ARM_HARDWARE
audioSettings->addItem(as_oj_ddsubchn);
//---------------------------------------------------------
audioSettings->addItem(GenericMenuSeparatorLine);