summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/CoreAudioSoundStream.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-11-26 12:31:28 +1100
committerskidau <skidau@gmail.com>2014-11-26 12:31:28 +1100
commit69bd1562e25f518a9bd3e991fa3517a217ceea30 (patch)
tree668493c1de4981c6c8771a0203b2544401b6044a /Source/Core/AudioCommon/CoreAudioSoundStream.cpp
parent4afb85ef33c39fbda60a92620990e4ae1f2bd763 (diff)
parentb36b55cfcb7d2cab7c3bb08e72f57a75199e2b70 (diff)
Merge pull request #1561 from comex/10.9
Update OS X Requirement to 10.9 + fixes
Diffstat (limited to 'Source/Core/AudioCommon/CoreAudioSoundStream.cpp')
-rw-r--r--Source/Core/AudioCommon/CoreAudioSoundStream.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/AudioCommon/CoreAudioSoundStream.cpp b/Source/Core/AudioCommon/CoreAudioSoundStream.cpp
index cfe6bc6e16..3bfd517708 100644
--- a/Source/Core/AudioCommon/CoreAudioSoundStream.cpp
+++ b/Source/Core/AudioCommon/CoreAudioSoundStream.cpp
@@ -32,22 +32,22 @@ bool CoreAudioSound::Start()
OSStatus err;
AURenderCallbackStruct callback_struct;
AudioStreamBasicDescription format;
- ComponentDescription desc;
- Component component;
+ AudioComponentDescription desc;
+ AudioComponent component;
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_DefaultOutput;
desc.componentFlags = 0;
desc.componentFlagsMask = 0;
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
- component = FindNextComponent(nullptr, &desc);
+ component = AudioComponentFindNext(nullptr, &desc);
if (component == nullptr)
{
ERROR_LOG(AUDIO, "error finding audio component");
return false;
}
- err = OpenAComponent(component, &audioUnit);
+ err = AudioComponentInstanceNew(component, &audioUnit);
if (err != noErr)
{
ERROR_LOG(AUDIO, "error opening audio component");
@@ -131,7 +131,7 @@ void CoreAudioSound::Stop()
if (err != noErr)
ERROR_LOG(AUDIO, "error uninitializing audiounit");
- err = CloseComponent(audioUnit);
+ err = AudioComponentInstanceDispose(audioUnit);
if (err != noErr)
ERROR_LOG(AUDIO, "error closing audio component");
}