Third Party Audio Hardware
Third Party Audio Hardware
- Subject: Third Party Audio Hardware
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 12 Jan 2004 00:11:07 -0800
I'm trying to support as much audio input hardware as possible with my
application, and I guess I just don't know the limitations of the
HAL... I try the following bit of code to get a device count, and some
things show up (MOTU 828) and others don't (Digi 001). The Digi 001
does show up in system preferences, however.
Should I expect AudioHardwareGetProperty(kAudioHardwarePropertyDevices,
...) to return all of the devices I ought to support? Does my
inability to list the Digi 001 stem from uncertain manufacturer support
for Panther? What other ways are there to get a list of audio devices?
How does System Preferences find the Digi 001? Will I need to support
some of these devices directly somehow, as opposed to universal support
through an API like CoreAudio that I assumed would manage all of the
accessible devices? Is support for the plethora of audio devices
available on the market perhaps out of reach for a freeware hobbyist
like myself?
Answers to any of these questions would be a great deal of help, thanks.
// Daniel Currie
UInt32 theSize;
OSStatus err = kAudioHardwareNoError;
err = AudioHardwareGetPropertyInfo(kAudioHardwarePropertyDevices,
&theSize, NULL);
if (err != kAudioHardwareNoError) { ... }
UInt32 theNumberDevices = theSize / sizeof(AudioDeviceID);
AudioDeviceID *theDeviceList = (AudioDeviceID*)
malloc(theNumberDevices * sizeof(AudioDeviceID));
err = AudioHardwareGetProperty(kAudioHardwarePropertyDevices,
&theSize, theDeviceList);
if (err != kAudioHardwareNoError) { ... }
[textView setString:[[textView string]
stringByAppendingString:[NSString stringWithFormat:@"device count =
%d", theNumberDevices]]];
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.