diff --git a/Source/Core/AudioCommon/CoreAudioSoundStream.cpp b/Source/Core/AudioCommon/CoreAudioSoundStream.cpp index f6a26b442f..38f11fb766 100644 --- a/Source/Core/AudioCommon/CoreAudioSoundStream.cpp +++ b/Source/Core/AudioCommon/CoreAudioSoundStream.cpp @@ -2,7 +2,7 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include +#include #include "AudioCommon/CoreAudioSoundStream.h" #include "Common/Logging/Log.h" @@ -73,7 +73,7 @@ bool CoreAudioSound::Start() err = AudioUnitSetParameter(audioUnit, kHALOutputParam_Volume, - kAudioUnitParameterFlag_Output, 0, + kAudioUnitScope_Output, 0, m_volume / 100., 0); if (err != noErr) ERROR_LOG(AUDIO, "error setting volume"); @@ -102,7 +102,7 @@ void CoreAudioSound::SetVolume(int volume) err = AudioUnitSetParameter(audioUnit, kHALOutputParam_Volume, - kAudioUnitParameterFlag_Output, 0, + kAudioUnitScope_Output, 0, volume / 100., 0); if (err != noErr) ERROR_LOG(AUDIO, "error setting volume");