mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
coreaudio aggregate device fix for 10.5
This commit is contained in:
parent
52ef02b387
commit
64baed2b97
2 changed files with 10 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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' ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue