• 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: Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString?


  • Subject: Re: Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString?
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 1 Mar 2007 17:58:35 -0800

Getting kAudioHardwareIllegalOperationError in this situation most likely means that one of your arguments is bad.

It also could signify that something failed internally such as looking up the localized string in the driver's resource bundle. If this is the case, then it could mean that there is some memory corruption in your process or that the driver's resource bundle has become corrupt.

On Mar 1, 2007, at 4:32 PM, Ulrich David wrote:

I have a small app which get all avaible audio devices and sources and put it in menus. I used HALLab for example to write the code, but in objective-c++ instead of cpp.
I use this app for 2 years now and all works well (on PowerPC).


I recently get a MacPro and I notice that I have trouble with getting kAudioDevicePropertyDataSourceNameForIDCFString after changing a source.

I have listener in my app. When data source or device property change, I update my menus (rebuilding them from scratch with a complete discover of device and source).
The first load of app build a complete menu without error. But when I change source, for example I put my headphone on front panel of MacPro) the data source name given by


AudioDeviceGetProperty(inDeviceID,
inChannel,
dataSourceIsInput,
kAudioDevicePropertyDataSourceNameForIDCFString,
&theSize,
&theTranslation);


is nul !!
I got an OSStatus error : 1852797029 -> ('nope')

It's very strange because I use the same function at the start of the app which return me a valid name. When the datasource change I destroy and re-create a full new object handling the property of device and attached datasources...

I don't have this problem on HALLab. I control the device ID, data source ID, channel, sizeof AudioValueTranslation between the two app and they are exactly the same when the problem occurs.

I don't know what to do now. Have someone an idea?


--

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: 
 >Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString? (From: Ulrich David <email@hidden>)

  • Prev by Date: Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString?
  • Next by Date: Re: OT: Apple has a patent on tremolo!
  • Previous by thread: Bug in CA kAudioDevicePropertyDataSourceNameForIDCFString?
  • Next by thread: Re: OT: Apple has a patent on tremolo - further evidence.
  • Index(es):
    • Date
    • Thread