• 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: kAudioDevicePropertyStreamFormat error on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kAudioDevicePropertyStreamFormat error on Tiger


  • Subject: Re: kAudioDevicePropertyStreamFormat error on Tiger
  • From: Dominic Feira <email@hidden>
  • Date: Wed, 16 Nov 2005 15:50:03 -0500


On Nov 16, 2005, at 3:02 PM, Jeff Moore wrote:

A quick test with the devices I have on hand, show that I can't  

reproduce the problem. It's entirely possible that the format is  

being rejected by the hardware itself, possibly due to bandwidth  

usage issues. I don't have the specific device on hand to test with,  

so it's hard to say.


At any rate, kAudioDevicePropertyStreamFormatMatch is one of the  

properties that has been unofficially deprecated for quite some time  

(you can see this most clearly in the Tiger version of CoreAudio/ 

AudioHardware.h where this is called out specifically). You should  

not be using it. The right thing to do is to get the list of  

available formats and iterate through it to find the format you are  

interested in.


Also, applications should not be changing the hardware format to  

begin with. Settings belong to the user and for hardware, global to  

the entire system. Applications should not be changing settings willy  

nilly. That's why the system ships with AMS. Of course, there are  

exceptions (like when an app wants to deal with sending encoded data  

to the hardware), but they are relatively few and far between.


With all due respect to whomever wrote AMS, it sucks.  Not because it can't do things, but because most consumers don't have a clue about using it or even that it exists.  AMS really is designed with audiophiles in mind.  It seems to me that device settings would be a better fit in the System Preferences than tucked away.  I wouldn't be surprised if most consumers never even ventured into their Utilities folder.

The reason that I change the settings of the device myself is so that I can ensure that decent quality input is coming into my app.  Before doing this, I can't tell you how many times I heard, "Everything works fine the but quality isn't that great."  Of course, their settings in AMS were wrong, but the blame wasn't assigned appropriately.

I'll have to make appropriate changes now that I realize kAudioDevicePropertyStreamFormatMatch is "deprecated".  Thanks for such a quick response.  The CA team rocks.

Dominic Feira / Code Monkey / Ambrosia Software, Inc.
 _______________________________________________
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

  • Follow-Ups:
    • Re: kAudioDevicePropertyStreamFormat error on Tiger
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Datasources and digital audio output
  • Next by Date: Re: kAudioDevicePropertyStreamFormat error on Tiger
  • Previous by thread: Format Info and the HAL (was Re: kAudioDevicePropertyStreamFormat error on Tiger)
  • Next by thread: Re: kAudioDevicePropertyStreamFormat error on Tiger
  • Index(es):
    • Date
    • Thread