Re: Aggregate question device
Re: Aggregate question device
- Subject: Re: Aggregate question device
- From: Stéphane Letz <email@hidden>
- Date: Tue, 17 Nov 2009 00:44:09 +0100
>That sub-device dictionary stuff was snipped out of code that builds up an aggregate device description dictionary to be passed to kAudioPlugInCreateAggregateDevice in order to create a new >aggregate device.
OK so I do:
CFMutableArrayRef subDevicesArrayClock = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks);
CFMutableDictionaryRef subdeviceAggDeviceDict = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFDictionaryAddValue(subdeviceAggDeviceDict, CFSTR(kAudioSubDeviceUIDKey), UID); <== with UID of input sub-device
CFDictionaryAddValue(subdeviceAggDeviceDict, CFSTR(kAudioSubDeviceDriftCompensationKey), AggregateDeviceNumberRef); <== with AggregateDeviceNumberRef = CFNumberCreate of 1
CFArrayAppendValue(subDevicesArrayClock, subdeviceAggDeviceDict);
.. same for output sub-device...
then in previously created aggDeviceDict:
CFDictionaryAddValue(aggDeviceDict, CFSTR(kAudioAggregateDeviceSubDeviceListKey), subDevicesArrayClock);
Then creating a "public" aggregate device works, but I don"t see the resampling checkboxes activated in Audio Midi Setup...
What is still wrong?
Thanks
Stéphane Letz
(complete code here: http://trac.jackaudio.org/browser/jack2/trunk/jackmp/macosx/coreaudio/JackCoreAudioDriver.cpp)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden