Re: Audio File writing
Re: Audio File writing
- Subject: Re: Audio File writing
- From: Dave Fernandes <email@hidden>
- Date: Thu, 2 Aug 2007 15:04:08 -0400
Just a guess, but I think you might want to set
gAACFormat.mFormatFlags = 0;
You might also try setting gAACFormat.mFramesPerPacket = 0;
Dave
On Aug 2, 2007, at 1:50 PM, sheen mac wrote:
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:
40utoronto.ca
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