• 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: Encoding Mono IMA4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoding Mono IMA4


  • Subject: Re: Encoding Mono IMA4
  • From: "Lee Falin" <email@hidden>
  • Date: Sat, 29 Jul 2006 09:19:14 -0400

No dice, (same fmt? error). The CAFSpec docs state that for IMA4
encoding the FormatFlags should be set to 0. Any other ideas?

Lee


I guess you need to set

outputFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved;

for mono files...

HTH,
Tahome


On 7/29/06, Lee Falin <email@hidden> wrote:
I am trying to use the ExtAudioFile Recording Sample to write a
Mono IMA4 file.

I am able to write a stereo IMA4 file without any trouble using
these settings:

outputFormat.mChannelsPerFrame = 2; outputFormat.mSampleRate = 44100; outputFormat.mFormatID = kAudioFormatAppleIMA4; outputFormat.mFormatFlags = 0; outputFormat.mBitsPerChannel = 0; outputFormat.mBytesPerFrame = 0; outputFormat.mFramesPerPacket = 64; outputFormat.mBytesPerPacket = outputFormat.mChannelsPerFrame * 34;;

I then use the kAudioFileCAFType for the file format. As I said, this
works great.

I have tried changing the channels per frame to 1, which I thought
would give me a mono file. Instead it gives me a "fmt?" error. I also
tried changing the file type to kAudioFileAIFCType, but that also
didn't work. Most of my settings came from the CoreAudio SDK Codec
example (which is an IMA4 codec), and from the CAFSpec file which
lists the settings for stereo IMA4 encoding.

Any help is appreciated.

Lee

_______________________________________________
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: Encoding Mono IMA4
      • From: "tahome izwah" <email@hidden>
References: 
 >Encoding Mono IMA4 (From: "Lee Falin" <email@hidden>)

  • Prev by Date: Re: Encoding Mono IMA4
  • Next by Date: Re: Encoding Mono IMA4
  • Previous by thread: Re: Encoding Mono IMA4
  • Next by thread: Re: Encoding Mono IMA4
  • Index(es):
    • Date
    • Thread