• 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: Decoding raw AMR
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decoding raw AMR


  • Subject: Re: Decoding raw AMR
  • From: James McCartney <email@hidden>
  • Date: Mon, 29 Jan 2007 16:35:40 -0800


On Jan 29, 2007, at 12:36 PM, Martin Storsjö wrote:

As mentioned, I've already got the data in packets, the problem is using the AudioConverter API (or AudioCodec directly) to decode them. But I haven't been able to avoid getting the kAudioCodecStateError when trying to decode them. Is there any extra properties specific to this codec which need to be set?


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. 


 _______________________________________________
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: Decoding raw AMR
      • From: Martin Storsjö <email@hidden>
References: 
 >Decoding raw AMR (From: Martin Storsjö <email@hidden>)
 >Re: Decoding raw AMR (From: William Stewart <email@hidden>)
 >Re: Decoding raw AMR (From: Martin Storsjö <email@hidden>)
 >Re: Decoding raw AMR (From: William Stewart <email@hidden>)
 >Re: Decoding raw AMR (From: Martin Storsjö <email@hidden>)

  • Prev by Date: Re: Macbook and Macbook por Audio loss when plugged into a specific usb port
  • Next by Date: Re: AudioUnitSetProperty() returns -10879
  • Previous by thread: Re: Decoding raw AMR
  • Next by thread: Re: Decoding raw AMR
  • Index(es):
    • Date
    • Thread