PDA

View Full Version : Change audio output?




themacster298
Jun 4, 2012, 08:19 PM
How would I be able to add a option to change the audio output in Objective-C?

Here is a snapshot from the recording program 'Audicity' with the feature I am trying to do:

http://img843.imageshack.us/img843/6879/screenshot20120604at814.png



chown33
Jun 5, 2012, 12:07 AM
Audacity is GPL:
http://audacity.sourceforge.net/

So look at the actual source to see how they did it.

subsonix
Jun 5, 2012, 09:19 AM
In Core Audio you can get device id's with AudioObjectGetPropertyData and kAudioHardwarePropertyDevices to get a list of device id's.

You can then enumerate that list and get additional information like, names etc.