summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/CoreAudioSoundStream.cpp
diff options
context:
space:
mode:
authorMathew Maidment <mathew1800@gmail.com>2016-02-07 22:25:15 -0500
committerMathew Maidment <mathew1800@gmail.com>2016-02-07 22:25:15 -0500
commit08c9e3b7a4917e5f49a233bd2775d0b5e4eacf5e (patch)
tree2d7f90df9a20adc7fa9282bcdf9797abc7687405 /Source/Core/AudioCommon/CoreAudioSoundStream.cpp
parent35d7c2bc78007f550474f035c486bcc5f79ef60f (diff)
parent36a20c3535e799acfa72af4757aab8e7b3bb8e23 (diff)
Merge pull request #3602 from OatmealDome/coreaudio
CoreAudioSound: Minor clean up
Diffstat (limited to 'Source/Core/AudioCommon/CoreAudioSoundStream.cpp')
-rw-r--r--Source/Core/AudioCommon/CoreAudioSoundStream.cpp6
1 files changed, 3 insertions, 3 deletions
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 <CoreServices/CoreServices.h>
+#include <AudioUnit/AudioUnit.h>
#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");