• 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 14:13:41 -0400

Doh, found the problem.

The output format that I was passing to ExtAudioFileCreateNew was correct, but the format that I was setting for ExtAudioFileSetProperty for kExtAudioFileProperty_ClientDataFormat had two channels instead of one. Apparently the converter can convert between bitrates and encoding format, but not between mono and stereo. (For example I write to file with a sampling rate of 11000, but my client format is 44100)

Here are the final settings I used for IMA4 mono:

	AudioStreamBasicDescription outputFormat;
	outputFormat.mChannelsPerFrame = 1;
	outputFormat.mSampleRate = 11000;
	outputFormat.mFormatID = kAudioFormatAppleIMA4;
	outputFormat.mFormatFlags = 0;
	outputFormat.mBitsPerChannel = 0;
	outputFormat.mBytesPerFrame = 0;
	outputFormat.mFramesPerPacket = 64;
	outputFormat.mBytesPerPacket = 68;


Thanks for everyone's help,

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: William Stewart <email@hidden>
    • Re: Encoding Mono IMA4
      • From: "tahome izwah" <email@hidden>
  • Prev by Date: Re: [Resend]. ExtAudioFileAsync problem...
  • 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