• 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: Why a 'prop' error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why a 'prop' error?


  • Subject: Re: Why a 'prop' error?
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 05 Nov 2008 18:21:22 -0800

Actually if you wanted to get formal about it, the right thing to do is to call AudioConverterGetPropertyInfo(). Part of the job of that function is to tell you whether or not the given property exists.

That said, it doesn't really matter which API you use. At the end of the day, it is all really the same with regards to which API call you want to make to figure out if a property exists or not. They will all behave the same way in that they will return kAudioConverterErr_PropertyNotSupported if the given converter doesn't support the given property.

On Nov 5, 2008, at 6:06 PM, Stevo Brock wrote:

That doesn't sound like a very good solution to me. Call a function and get an error to determine whether or not it's even appropriate to call the function to begin with? You guys can do better than that.

How 'bout this? (and for the record in case anyone is perusing the archives)

call AudioConverterGetProperty with kAudioConverterSampleRateConverterQuality and if you get 'prop' back, you don't have an SRC, so don't try to set any of those properties.

-Stevo Brock
Head of Development
Monkey Tools, LLC
www.monkey-tools.com




On Nov 5, 2008, at 2:41 PM, james mccartney wrote:


On Nov 5, 2008, at 1:44 PM, Stevo Brock wrote:

So I guess that begs the question, after you call AudioConverterNew, how do you know if you have an SRC or not?

If you get a 'prop' error for setting the quality, then you don't have one.




--

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
  • Follow-Ups:
    • Re: Why a 'prop' error?
      • From: Stevo Brock <email@hidden>
References: 
 >Why a 'prop' error? (From: Stevo Brock <email@hidden>)
 >Re: Why a 'prop' error? (From: james mccartney <email@hidden>)
 >Re: Why a 'prop' error? (From: Stevo Brock <email@hidden>)
 >Re: Why a 'prop' error? (From: james mccartney <email@hidden>)
 >Re: Why a 'prop' error? (From: Stevo Brock <email@hidden>)

  • Prev by Date: Re: Why a 'prop' error?
  • Next by Date: Re: AudioQueue Memory Leak Problem in Apples Samplecode?
  • Previous by thread: Re: Why a 'prop' error?
  • Next by thread: Re: Why a 'prop' error?
  • Index(es):
    • Date
    • Thread