Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Creating Aggregate Devices programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating Aggregate Devices programmatically



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
References: 
 >Creating Aggregate Devices programmatically (From: Dave Addey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.