Re: Decoding raw AMR
Re: Decoding raw AMR
- Subject: Re: Decoding raw AMR
- From: Martin Storsjö <email@hidden>
- Date: Tue, 30 Jan 2007 19:46:48 +0200 (EET)
On Mon, 29 Jan 2007, James McCartney wrote:
You should not attempt to use an AudioCodec directly but instead use an
AudioConverter. There are many subtle and sometimes counter-intuitive details
that are easy to get wrong when interacting with various codecs directly.
The AMR codec requires a magic cookie in order to decode. If you don't set
the magic cookie on the AudioConverter, then the AudioCodec will return
kAudioCodecStateError.
A magic cookie is a string of bytes in some opaque codec-dependant format
which are used to configure the decoder.
Is there any documentation anywhere about what the magic cookie for the
AMR decoder should be? I've tried almost all imaginable combinations of
the actual file header and the first byte of the packet (containing size
information about the packet) or even the whole packet, without success.
// Martin
_______________________________________________
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