• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AudioQueueNewOutput error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: AudioQueueNewOutput error
  • Next by Date: Convertor crash
  • Previous by thread: Re: AudioQueueNewOutput error
  • Next by thread: Convertor crash
  • Index(es):
    • Date
    • Thread