How to use kAudioDevicePropertyChannelCategoryName?
How to use kAudioDevicePropertyChannelCategoryName?
- Subject: How to use kAudioDevicePropertyChannelCategoryName?
- From: Jesper Papmehl <email@hidden>
- Date: Wed, 7 Sep 2005 15:43:54 +0200
Hi!
I am trying to get user interface names of the channels of an audio
device. I do this by calling AudioDeviceGetProperty with the
kAudioDevicePropertyChannelCategoryNameCFString selector. However,
this fails with the error kAudioHardwareUnknownPropertyError.
Is there any trick to using this property, have I misunderstood how
it works, or is it simply not implemented by the driver I'm using
(built-in audio on a G5)?
My code:
::CFStringRef string = NULL;
::UInt32 size = sizeof(string);
::OSStatus status = ::AudioDeviceGetProperty(deviceID, channelNo,
false, ::kAudioDevicePropertyChannelNameCFString, &size, &string);
// status is kAudioHardwareUnknownPropertyError here
TIA
/Jesper Papmehl
_______________________________________________
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