Re: Accessing AudioCodec from AudioConverter?
Re: Accessing AudioCodec from AudioConverter?
- Subject: Re: Accessing AudioCodec from AudioConverter?
- From: William Stewart <email@hidden>
- Date: Wed, 28 Dec 2005 11:43:27 -0800
you just set these codec properties directly on the converter - the
converter will recognise these as properties that need to be passed
through to the codec and will do just that
Bill
On 27/12/2005, at 9:21 AM, Stephen F. Booth wrote:
Hello all,
I am new to Core Audio programming and am stuck! In essence, I
want to set the options for the codec used by an AudioConverter;
specifically I want to set the bitrate mode (CBR, ABR, VBR) on the
AAC codec. Setting the kAudioConverterSampleRateConverterQuality
property does not seem to do the trick. I am aware of the
kAudioConverterPropertyInputCodecParameters /
kAudioConverterPropertyOutputCodecParameters properties, but I
cannot find any documentation on how to use them. I have also
looked into the kAudioFormatProperty_FormatIsVBR property on
AudioStreamBasicDescription, but this seems informational only.
"AudioCodec.h" defines the following
// constants to be used with kAudioCodecBitRateFormat
enum
{
kAudioCodecBitRateFormat_CBR = 0, // Every encoded frame is the
same size
// eg IMA, MACE, old MP3, most early audio codecs
kAudioCodecBitRateFormat_ABR = 1, // Encoder attempts to keep
close to the given bit rate, can vary
// eg modern MP3 CBR, AAC (anything that has a "minimum"
frame size
// or implements a bit pool for "CBR")
kAudioCodecBitRateFormat_VBR = 2 // Encoder varies frames size
attempting to maintain constant quality
// eg MP3 VBR (Xing), AAC VBR
};
but I cannot find a way to access the AudioCodec (which I presume
is used internally by AudioConverter) directly.
Could anyone shed some light on this matter?
Stephen
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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