setting AudioStreamBasicDescription
setting AudioStreamBasicDescription
- Subject: setting AudioStreamBasicDescription
- From: "Sandeep Chandna" <email@hidden>
- Date: Tue, 19 Sep 2006 15:16:31 +0530
Hi!
I was trying to set ASBD for RAW PCM samples as follows:
inputASBD.mFormatID = kAudioFormatLinearPCM;
inputASBD.mSampleRate = 32000.0;
inputASBD.mFormatFlags = 0;
inputASBD.mBytesPerPacket = 4;
inputASBD.mFramesPerPacket = 1;
inputASBD.mBytesPerFrame = 4;
inputASBD.mChannelsPerFrame = 1;
inputASBD.mBitsPerChannel = 16;
The mFormatFlags was giving me some problems (QTSetComponentProperty would return
-206 error code). I didnt need to set it to any value available: kAudioFormatFlagIsSignedInteger, kAudioFormatFlagIsBigEndian or anything. The
coreaudiotypes.h says that we can set this to
kAudioFormatFlagsAreAllClear but this is also returning me
the same "-206" error code.
It works
only when I set it to anyvalue|kAudioFormatFlagIsSignedInteger. Is this the expected behaviour?
Regards
Sandeep
_______________________________________________
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