Re: AudioQueueNewOutput error
Re: AudioQueueNewOutput error
- Subject: Re: AudioQueueNewOutput error
- From: Jens Alfke <email@hidden>
- Date: Wed, 30 Apr 2008 07:52:17 -0700
On 30 Apr '08, at 5:10 AM, Roland Silver wrote: ASBDesc.mSampleRate = consts.SampleRate; //consts.SampleRate = 44100.0 ASBDesc.mFormatID = kAudioFormatLinearPCM; ASBDesc.mFormatFlags = kAudioFormatFlagsNativeFloatPacked; ASBDesc.mBytesPerFrame = consts.channelsPerFrame * consts.valuesPerChannel * consts.bytesPerValue; //mBytesPerFrame = 16 ASBDesc.mFramesPerPacket = consts.framesPerPacket; //1 ASBDesc.mChannelsPerFrame = consts.channelsPerFrame; //2 ASBDesc.mBitsPerChannel = consts.valuesPerChannel * consts.bytesPerValue * consts.bitsPerByte; //mBitsPerChannel = 64
Floats are 4 bytes, not 8.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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