• 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 use kAudioDevicePropertyChannelCategoryName?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use kAudioDevicePropertyChannelCategoryName?


  • Subject: Re: How to use kAudioDevicePropertyChannelCategoryName?
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 7 Sep 2005 11:35:48 -0700

That error means that the device in question doesn't supply a category name for it's channels.

It is a common case for a device to not have any support for naming it's channels with this property or the other name-related properties. So, it's a good idea to design your code to have a fall back of some sort.

On Sep 7, 2005, at 6:43 AM, Jesper Papmehl wrote:

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

--

Jeff Moore
Core Audio
Apple


_______________________________________________ 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 kAudioDevicePropertyChannelCategoryName? (From: Jesper Papmehl <email@hidden>)

  • Prev by Date: SampleAccurate Tempo
  • Next by Date: RE: lightweight traces in kernelmode?
  • Previous by thread: How to use kAudioDevicePropertyChannelCategoryName?
  • Next by thread: SampleAccurate Tempo
  • Index(es):
    • Date
    • Thread