Re: Creating Aggregate Devices programmatically
Re: Creating Aggregate Devices programmatically
- Subject: Re: Creating Aggregate Devices programmatically
- From: Jeff Moore <email@hidden>
- Date: Mon, 25 Jul 2005 12:55:13 -0700
Creating a new aggregate device requires using the new AudioObject
APIs in Tiger and goes something like this:
1) Locate the base plug-in using
kAudioHardwarePropertyPlugInForBundleID. It has a bundle ID of
"com.apple.audio.CoreAudio".
2) Create a CFDictionary that describes the aggregate device you want
to create. The keys for the dictionary are in the Aggregate Device
section of <CoreAudio/AudioHardware.h>. Be sure to create a unique UID.
3) Tell the base plug-in to create the aggregate device using
kAudioPlugInCreateAggregateDevice.
4) Presuming success, use kAudioHardwarePropertyDeviceForUID to get
the AudioDeviceID of the newly created aggregate device.
That's pretty much it. Let me know if you have any specific questions
about the process.
On Jul 23, 2005, at 4:54 PM, Dave Addey wrote:
Hi all,
Does anyone have any sample code showing how to create an aggregate
device entirely programmatically? Or is there some particular
documentation I should be looking at? Any ideas much appreciated :-)
Dave.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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