From d548695bbcadd00f4869e5e9901dbea1df5b3d1a Mon Sep 17 00:00:00 2001 From: Memphiz Date: Wed, 1 Aug 2012 18:24:41 +0200 Subject: [AE/CA/iOS] - let the hardware volume control the output channel of the mixer not 1 of 8 input channels only (fixes a bug where volume gets 100% on paplayer track switch) --- xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHALIOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHALIOS.cpp b/xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHALIOS.cpp index 94050a3655..1d5068641d 100644 --- a/xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHALIOS.cpp +++ b/xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEHALIOS.cpp @@ -575,7 +575,7 @@ bool CAUMultiChannelMixer::SetCurrentVolume(Float32 vol) if (!m_audioUnit) return false; - OSStatus ret = AudioUnitSetParameter(m_audioUnit, kMultiChannelMixerParam_Volume, kAudioUnitScope_Input, kInputBus, vol, 0); + OSStatus ret = AudioUnitSetParameter(m_audioUnit, kMultiChannelMixerParam_Volume, kAudioUnitScope_Output, kOutputBus, vol, 0); if (ret) { CLog::Log(LOGERROR, "CAUMultiChannelMixer::SetCurrentVolume: Unable to set Mixer volume. Error = %s", GetError(ret).c_str()); -- cgit v1.2.3