Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
- Subject: Re: iPhone AudioConverter and Audio File - Does anyone know how to use this on Audio Unit stuff
- From: Doug Wyatt <email@hidden>
- Date: Fri, 15 Jan 2010 13:05:16 -0800
On Jan 15, 2010, at 13:03 , wm schauweker wrote:
> 2. AudioFileCreate is still failing with a "fmt?" error. Again, I'm trying to create a wav from Audio Unit samples by doing a conversion and writing the results to an audio file. The ASBD I am feeding AudioFileCreate...:
>
> convertedFormat.mSampleRate = 44100.0;
> convertedFormat.mFormatID = kAudioFormatLinearPCM;
> convertedFormat.mFramesPerPacket = 1;
> convertedFormat.mChannelsPerFrame = 2;
> convertedFormat.mBytesPerFrame = 2;
> convertedFormat.mBytesPerPacket = 2;
> convertedFormat.mBitsPerChannel = 16;
> convertedFormat.mReserved = 0;
> convertedFormat.mFormatFlags =
> kLinearPCMFormatFlagIsSignedInteger |
> kLinearPCMFormatFlagIsPacked |
> kAudioFormatFlagIsNonInterleaved |
> 0;
>
> I am also supplying a URL of a path in the document directory. The big long path ends in "something.wav".
The non-interleaved format is not accepted by AudioFile; files always contain interleaved data.
Doug
_______________________________________________
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