• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Aggregate question device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Aggregate question device
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Calling ExtAudioFileDispose() on a large MP4 audio file causes a crash
  • Next by Date: Re: AU Presets for multiple plugins
  • Previous by thread: Re: Aggregate question device
  • Next by thread: Re: Aggregate question device
  • Index(es):
    • Date
    • Thread