Audio File writing
Audio File writing
- Subject: Audio File writing
- From: sheen mac <email@hidden>
- Date: Thu, 2 Aug 2007 10:50:59 -0700 (PDT)
Hi All,
I am developing a audio file writing application based on RecordAudioToFile
code.Can I use this fOutputFormat as clientData format and gAACFormat
as file format ?.I tried based on this but it not working.
Waiting for your valuable suggestion.
Thanks In Advance,
Sheen
fOutputFormat.mSampleRate = 44100;
fOutputFormat.mFormatID = kAudioFormatLinearPCM;
fOutputFormat.mFormatFlags = kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
fOutputFormat.mBytesPerPacket = fOutputFormat.mBytesPerFrame = fDeviceFormat.mChannelsPerFrame * sizeof(SInt16);
fOutputFormat.mFramesPerPacket = 1;
fOutputFormat.mChannelsPerFrame = fDeviceFormat.mChannelsPerFrame;
fOutputFormat.mBitsPerChannel = 16;
AudioStreamBasicDescription gAACFormat
= {44100.0, kAudioFormatMPEG4AAC, kAudioFormatFlagIsBigEndian, 0, 1024, 0, 2, 0, 0};
Need a vacation?
Get great deals
to amazing places on Yahoo! Travel.
_______________________________________________
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