• 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: "tahome izwah" <email@hidden>
  • Date: Sat, 29 Jul 2006 23:16:36 +0200

Sorry, forget my last comment I goofed - it appears I didn't set the
channel number right. Works fine now.

Thanks again
--th


2006/7/29, tahome izwah <email@hidden>:
I don't think that this really is the problem, I am using your
settings and it still doesn't work for me...

Btw. how do you calculate mFramesPerPacket and mBytesPerPacket? These
numbers don't make any sense to me.

Thanks
--th


2006/7/29, Lee Falin <email@hidden>: > 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 >

_______________________________________________
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


References: 
 >Re: Encoding Mono IMA4 (From: Lee Falin <email@hidden>)
 >Re: Encoding Mono IMA4 (From: "tahome izwah" <email@hidden>)

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