FLLR (compression ?) in AIFF file
FLLR (compression ?) in AIFF file
- Subject: FLLR (compression ?) in AIFF file
- From: "Francois Baronnet" <email@hidden>
- Date: Wed, 6 Aug 2008 07:27:49 +0200
Hi,
using some code provided by Apple to record audio
(http://developer.apple.com/documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/AQRecord/chapter_3_section_6.html),
I'm able to create AIFF files.
Now I want to read thoses files using some code found on this mailing
list (http://lists.apple.com/archives/coreaudio-api/2003/Feb/msg00244.html).
It doesn't work for me :)
When I open my file using hexadecimal editor, I can see the "FORM",
"AIFF" and "COMM" headers. But I can't find the "NONE" one saying
there is no compression. That's why above objective-C routine can't
work. Instead of "NONE", there is "FLLR". And there is no such header
in AIFF format specification...
If I record my file as AIFC, the begining of the file is different but
still with "FLLR".
Here are my settings for AIFF file:
aqData.mDataFormat.mFormatID = kAudioFormatLinearPCM;
aqData.mDataFormat.mSampleRate = 44100.0;
aqData.mDataFormat.mChannelsPerFrame = 2;
aqData.mDataFormat.mBitsPerChannel = 16;
aqData.mDataFormat.mBytesPerPacket =
aqData.mDataFormat.mBytesPerFrame =
aqData.mDataFormat.mChannelsPerFrame * sizeof (SInt16);
aqData.mDataFormat.mFramesPerPacket = 1;
AudioFileTypeID fileType = kAudioFileAIFFType;
aqData.mDataFormat.mFormatFlags =
kLinearPCMFormatFlagIsBigEndian
| kLinearPCMFormatFlagIsSignedInteger
| kLinearPCMFormatFlagIsPacked;
Thanks for reading me.
--
François Baronnet
_______________________________________________
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