Look for examples of how to correctly specify linear PCM formats... There are plenty but this isn't one.
Doug typing on touchscreen thus terse and prone to typos all thumbs! well, just two On Jan 27, 2009, at 6:48, Dennis Christopher < email@hidden> wrote: Hi,
I'm trying to pass an lpcm stream into the AudioQueue machinery for playback. However I cant seem to get a parameter that AudioQueueNewOutput likes--it keeps returning -50. I've read the AudioQueue Programming guide. The problem seems to be with the AudioStreamBasicDescription parameter. I am inspecting the stream and setting its values by hand, e.g.--
mSampleRate = 11025
mFormatID = 'lpcm'
mFormatFlags = kLinearPCMFormatFlagIsBigEndian | kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked
mBytesPerPacket = 5120
mFramesPerPacket = 2560
mBytesPerFrame = 2
mChannelsPerFrame = 1
mBitsPerChannel = 16
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
|