coreaudio aggregate device fix for 10.5

This commit is contained in:
Robin Gareus 2015-07-24 01:33:49 +02:00
parent 52ef02b387
commit 64baed2b97
2 changed files with 10 additions and 1 deletions

View file

@ -822,12 +822,21 @@ CoreAudioPCM::pcm_start (
AudioDeviceID device_id;
AudioStreamBasicDescription srcFormat, dstFormat;
#ifndef COREAUDIO_108
ComponentDescription cd = {kAudioUnitType_Output, kAudioUnitSubType_HALOutput, kAudioUnitManufacturer_Apple, 0, 0};
Component HALOutput = FindNextComponent(NULL, &cd);
if (!HALOutput) { errorMsg="FindNextComponent"; goto error; }
err = OpenAComponent(HALOutput, &_auhal);
if (err != noErr) { errorMsg="OpenAComponent"; goto error; }
#else
AudioComponentDescription cd = {kAudioUnitType_Output, kAudioUnitSubType_HALOutput, kAudioUnitManufacturer_Apple, 0, 0};
AudioComponent HALOutput = AudioComponentFindNext(NULL, &cd);
if (!HALOutput) { errorMsg="AudioComponentFindNext"; goto error; }
err = AudioComponentInstanceNew(HALOutput, &_auhal);
if (err != noErr) { errorMsg="AudioComponentInstanceNew"; goto error; }
#endif
err = AudioUnitInitialize(_auhal);
if (err != noErr) { errorMsg="AudioUnitInitialize"; goto error; }

View file

@ -30,7 +30,7 @@ def build(bld):
obj.target = 'coreaudio_backend'
obj.use = 'libardour libpbd'
obj.framework = [ 'CoreAudio', 'AudioToolbox', 'CoreServices' ]
if bld.env['build_target'] not in [ 'lion' ]:
if bld.env['build_target'] not in [ 'lion' ] and (not bld.env['build_arch'] == "ppc"):
obj.framework += [ 'CoreMidi' ]
else:
obj.framework += [ 'CoreMIDI' ]