Re: Encoding Mono IMA4
Re: Encoding Mono IMA4
- Subject: Re: Encoding Mono IMA4
- From: "tahome izwah" <email@hidden>
- Date: Sat, 29 Jul 2006 23:13:12 +0200
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