Re: How to get the name of a stream/channel with CoreAudio
Re: How to get the name of a stream/channel with CoreAudio
- Subject: Re: How to get the name of a stream/channel with CoreAudio
- From: Jeff Moore <email@hidden>
- Date: Mon, 08 Apr 2002 13:05:00 -0700
on 4/6/02 9:05 PM, Jeremy@Verizon <email@hidden> wrote:
>
the following call returns a ('nope') error
>
>
OSStatus theStatus = AudioDeviceGetPropertyInfo( theID, 0,
>
kAudioDevicePropertyStreams, true, &theSize, &isWriteable);
You have arguments 3 and 4 to this call backwards. It should be:
theStatus = AudioDeviceGetPropertyInfo( theID, 0, true,
kAudioDevicePropertyStreams,
&theSize, &isWriteable);
>
Devices have multiple I/O's wherein each I/O needs to be referenced by
>
name. How do I do this?
Each stream supports having a name associated with it. You can access it
using the (slightly misleadingly named) properties
kAudioDevicePropertyDeviceName and kAudioDevicePropertyDeviceNameCFString.
Note that not all drivers supply a name for their streams.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.