----- Original Message -----
Sent: Thursday, July 08, 2010 9:02 PM
Subject: What is the AudioStreamBasicDescription(asbd) for a wav
file
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