Re: Recording in .wav format doesn't work properly
Re: Recording in .wav format doesn't work properly
- Subject: Re: Recording in .wav format doesn't work properly
- From: "Zhiye (Sterling) Li" <email@hidden>
- Date: Thu, 29 Oct 2009 11:43:44 -0500
I use ExtAudioFileWriteAsync() to write data, and it returns no error during recording. The data format flag I am using is
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
The recording part of the code is like:
[self setUpAudioFormat];
status = AudioFileCreateWithURL((CFURLRef)file, kAudioFileWAVEType, &audioFormat, kAudioFileFlags_EraseFile, &audioFileID);
status = ExtAudioFileWrapAudioFileID(audioFileID, YES, &audiofile);
On Thu, Oct 29, 2009 at 2:32 AM, Seth Delackner
<email@hidden> wrote:
How are you writing your data to the file? AudioFileWritePackets
works fine for me. Not sure about the data format flags you are
using. You are trying to write mono it seems, but I've only tried
writing stereo output. Shouldn't be an issue I would think...
_______________________________________________
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