Re: Encoding Mono IMA4
Re: Encoding Mono IMA4
- Subject: Re: Encoding Mono IMA4
- From: "tahome izwah" <email@hidden>
- Date: Sat, 29 Jul 2006 15:03:25 +0200
I guess you need to set
outputFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved;
for mono files...
HTH,
Tahome
2006/7/29, Lee Falin <email@hidden>:
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
_______________________________________________
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