Re: What is the AudioStreamBasicDescription(asbd) for a wav file
Re: What is the AudioStreamBasicDescription(asbd) for a wav file
- Subject: Re: What is the AudioStreamBasicDescription(asbd) for a wav file
- From: tahome izwah <email@hidden>
- Date: Fri, 9 Jul 2010 16:33:43 +0200
I use the EAFWrite class from the iPhone version of the DIRAC LE
project (first link on http://www.dspdimension.com/download/). This
works perfectly for all popular file formats and you can interface
with it using float arrays instead of ABLs.
just my 2 cents
--th
> Hey,
> I am writing the sound data from the mixer to a file of caf file
> here is the asbd for caf
>
> anASBD.mFormatID = kAudioFormatLinearPCM;
>
> anASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger |
>
> kAudioFormatFlagIsBigEndian |
> kAudioFormatFlagIsPacked;
>
> anASBD.mSampleRate = 44100;
>
> anASBD.mChannelsPerFrame = 2;
>
> anASBD.mFramesPerPacket = 1;
>
> anASBD.mBytesPerPacket=anASBD.mChannelsPerFrame * sizeof (SInt16);
>
> anASBD.mBytesPerFrame =anASBD.mChannelsPerFrame * sizeof (SInt16);
>
> anASBD.mBitsPerChannel = 16;
>
> this part is working fine.But Now I need to write to a 'wav' file instead
> for caf.
>
> I tried all possible combination but failed every time.
>
> Can anyone help me with the correct asbd for WAV file.
>
> Thank you
>
> Regards,
>
> Nambiar
_______________________________________________
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