From: hschang Date: Mon, 16 Dec 2013 08:11:27 +0000 (+0900) Subject: Audio Effect : when all of 3D surround audioout are set to off, 3D surround speaker... X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=43ee1a487f6052811ba3076c3d7d44bf865b8a4d Audio Effect : when all of 3D surround audioout are set to off, 3D surround speaker must set to default value, wide. --- diff --git a/lib/python/Plugins/SystemPlugins/AudioEffect/plugin.py b/lib/python/Plugins/SystemPlugins/AudioEffect/plugin.py index 284eed1..7d84598 100755 --- a/lib/python/Plugins/SystemPlugins/AudioEffect/plugin.py +++ b/lib/python/Plugins/SystemPlugins/AudioEffect/plugin.py @@ -128,6 +128,8 @@ def setAudioEffectConfigs(): if SUPPORT_AVL: setConfigValue(AUDIOEFFECT_PROC_PATH["AVL"], _AvlValue) if SUPPORT_3D_SURROUND_SPEAKER_POSITION: + if _3DSurroundValue == "none" : + config.plugins.audioeffect.speakerposition.value = config.plugins.audioeffect.speakerposition.default _3DSpeakerPosition = config.plugins.audioeffect.speakerposition.value setConfigValue(AUDIOEFFECT_PROC_PATH["3D_SURROUND_SPEAKER_POSITION"], _3DSpeakerPosition) @@ -195,14 +197,12 @@ class AudioEffect(Screen, ConfigListScreen): def keyLeft(self): ConfigListScreen.keyLeft(self) setAudioEffectConfigs() - if self.configEffect and (self["config"].getCurrent() == self.configEffect) : - self.createSetup() + self.createSetup() def keyRight(self): ConfigListScreen.keyRight(self) setAudioEffectConfigs() - if self.configEffect and (self["config"].getCurrent() == self.configEffect) : - self.createSetup() + self.createSetup() def cancelConfirm(self, result): if not result: