Stereo interleaved 16-bit format
Stereo interleaved 16-bit format
- Subject: Stereo interleaved 16-bit format
- From: Austin Shoemaker <email@hidden>
- Date: Mon, 26 Jan 2004 01:35:53 -0800
I just wanted to verify the equivalence of the following specifications
in QuickTime and CoreAudio, respectively:
In QuickTime:
format = k16BitBigEndianFormat;
numChannels = 2
sampleSize = 16
sampleRate = rate44khz
sampleCount = ...
In CoreAudio:
mSampleRate = 44100
mFormatID = kAudioFormatLinearPCM
mFormatFlags = kLinearPCMFormatFlagIsSignedInteger |
kLinearPCMFormatFlagIsBigEndian
mFramesPerPacket = 1
mBytesPerFrame = 4
mBytesPerPacket = 4
mBitsPerChannel = 16
These two descriptions specify an identical audio format, right? If
not, what am I missing? My project is working with mono streams, but
things get distorted (raspy, 2x playback speed) when I try to make it
work in interleaved stereo.
I must be doing something wrong, because it all seems right to me. I
have verified that the SoundComponentData record I am getting matches
the format I specified for it.
Thanks a lot!
Austin
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.