• 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: james mccartney <email@hidden>
  • Date: Wed, 5 Nov 2008 13:32:35 -0800


The prop error occurs because in this case the AAC codec is able to handle the downsample rate conversion itself, so there is no SRC in the AudioConverter chain. Thus the AudioConverter SRC quality is not settable.


I'm not seeing mBytesPerPacket returning 1536 though. If you are able to get that you should file a bug report.


On Nov 5, 2008, at 10:14 AM, Stevo Brock wrote:

We're seeing a 'prop' error when setting the converter quality that we haven't seen before. Maybe somebody (Apple?) can explain why we're getting this error.

We create a new AudioConverter with the following:

source
mSampleRate: 48000
mFormatID: lpcm
mFormatFlags: 9
mBytesPerPacket: 8
mFramesPerPacket: 1
mBytesPerFrame: 8
mChannelsPerFrame: 2
mBitsPerChannel: 32
mReserved: 0

dest
mSampleRate: 44100
mFormatID: aac
mFormatFlags: 0
mBytesPerPacket: 1536
mFramesPerPacket: 1024
mBytesPerFrame: 0
mChannelsPerFrame: 2
mBitsPerChannel: 0
mReserved: 0

(note this is the full dest as returned by the AudioConverter).

Then, when calling:
UInt32 u32 = kAudioConverterQuality_Max;
status = AudioConverterSetProperty(converter, kAudioConverterSampleRateConverterQuality, sizeof(UInt32), &u32);


we get a status == 'prop'

This is on OS X 10.5.5, Quicktime 7.5.5, Intel

What are the cases where you can set the kAudioConverterSampleRateConverterQuality property for an AudioConverter and when you can't?

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





_______________________________________________
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

_______________________________________________ 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>)

  • Prev by Date: Re: Why a 'prop' error?
  • Next by Date: Re: Why a 'prop' error?
  • Previous by thread: Re: Why a 'prop' error?
  • Next by thread: Re: Why a 'prop' error?
  • Index(es):
    • Date
    • Thread