Re: Why a 'prop' error?
Re: Why a 'prop' error?
- Subject: Re: Why a 'prop' error?
- From: Stevo Brock <email@hidden>
- Date: Wed, 5 Nov 2008 13:44:57 -0800
So I guess that begs the question, after you call AudioConverterNew,
how do you know if you have an SRC or not?
Sorry about the mBytesPerPacket . We are getting that via another
call to get the max packet size. We use that info elsewhere.
-Stevo Brock
Head of Development
Monkey Tools, LLC
www.monkey-tools.com
On Nov 5, 2008, at 1:32 PM, james mccartney wrote:
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