Re: How to use ChannelNames, CategoryNames, NumberNames?
Re: How to use ChannelNames, CategoryNames, NumberNames?
- Subject: Re: How to use ChannelNames, CategoryNames, NumberNames?
- From: Jeff Moore <email@hidden>
- Date: Wed, 5 Jan 2005 14:29:14 -0800
kAudioDevicePropertyDeviceName has only ever returned the name of the device. I'm pretty sure that the HAL ignores the inChannel and isInput arguments when you ask about this property and always returns the same string.
On Jan 5, 2005, at 2:23 PM, Jeremy Sagan wrote:
Jeff,
My previous understanding was that kAudioDevicePropertyDeviceName would return channel names if called with a channel number. Was this incorrect or did it change recently? It never seemed to work anyway.
Jeremy
On Jan 5, 2005, at 5:15 PM, Jeff Moore wrote:
You are accessing the property correctly. It is true that there are a lot of drivers that don't support these properties and it would definitely be cool if more did.
On Jan 5, 2005, at 2:05 PM, Jeremy Sagan wrote:
On Jan 5, 2005, at 3:28 PM, Jeff Moore wrote:
The channel name is the full name for the channel, i.e. "Analog Input 3".
This and/or kAudioDevicePropertyChannelNameCFString should be a required field! It does not seem like very many (any) audio devices support this. In ASIO it was built in and very nice. Do audio device driver authors support this? All of the audio hardware I have lying around reports 'unknown property error' when trying to determine the channel name.
Is this the correct way to call for this?
char cstring[256];
UInt32 outputSize = sizeof(cstring);
audioErr = MyAudioDeviceGetProperty(theID, stream,
isInput, kAudioDevicePropertyChannelName, &outputSize, cstring);
where theID is the ID of the device, stream is the channel number and isInput is self-evident?
Jeremy
<x-tad-smaller>-- </x-tad-smaller>
<x-tad-smaller>Jeff Moore</x-tad-smaller>
<x-tad-smaller>Core Audio</x-tad-smaller>
<x-tad-smaller>Apple
</x-tad-smaller>
_______________________________________________
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
<x-tad-smaller>-- </x-tad-smaller>
<x-tad-smaller>Jeff Moore</x-tad-smaller>
<x-tad-smaller>Core Audio</x-tad-smaller>
<x-tad-smaller>Apple
</x-tad-smaller>
_______________________________________________
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: | |
| >How to use ChannelNames, CategoryNames, NumberNames? (From: Chris Thomas <email@hidden>) |
| >Re: How to use ChannelNames, CategoryNames, NumberNames? (From: Jeff Moore <email@hidden>) |
| >Re: How to use ChannelNames, CategoryNames, NumberNames? (From: Jeremy Sagan <email@hidden>) |
| >Re: How to use ChannelNames, CategoryNames, NumberNames? (From: Jeff Moore <email@hidden>) |
| >Re: How to use ChannelNames, CategoryNames, NumberNames? (From: Jeremy Sagan <email@hidden>) |