• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the name of a stream/channel with CoreAudio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to get the name of a stream/channel with CoreAudio (From: "Jeremy@Verizon" <email@hidden>)

  • Prev by Date: Re: Creating a MIDIClient inside of a MIDI driver?
  • Next by Date: "Dave" and Non-Apple AudioUnits
  • Previous by thread: How to get the name of a stream/channel with CoreAudio
  • Next by thread: "Dave" and Non-Apple AudioUnits
  • Index(es):
    • Date
    • Thread