• 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: Different input buffer and output buffer sizes in IOProc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different input buffer and output buffer sizes in IOProc?


  • Subject: Re: Different input buffer and output buffer sizes in IOProc?
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 26 May 2009 13:03:49 -0700

It certainly sounds like you should be writing a bug about this.


On May 26, 2009, at 5:35 AM, Jesper Papmehl-Dufay wrote:

I have finally gotten hold of a M-Audio FW410, and I can reproduce the problem easily by changing the sample rate of the device a few times while my app is running.

If I look at the inInputData AudioBufferList that I get in my IOProc, it looks like this:
mNumberBuffers = 1
mBuffers[0] =
mNumberChannels = 2
mDataByteSize = 4096
mData = some address
and the outOutputData AudioBufferList looks like this:
mNumberBuffers = 1
mBuffers[0] =
mNumberChannels = 10
mDataByteSize = 16384
mData = some address


When our code calculates the input buffer size in frames, it gets 4096 / (4 * 2) = 512
and the output buffer size in frames becomes 16384 / (4 * 10) = 409,6


(If outOutputData-> mBuffers[0].mNumberChannels would have been 8, the output buffer size would be 512 frames and all would be well.)

Are we doing something wrong when calculating the buffer sizes? I'll try to see if I can notice the problem in HALLab, but the problem seems to exist for only a single IOProc call and then fix itself, so I'm not sure how to reproduce it in HALLab.


--

Jeff Moore
Core Audio
Apple




_______________________________________________ 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
References: 
 >Different input buffer and output buffer sizes in IOProc? (From: Jesper Papmehl-Dufay <email@hidden>)
 >Re: Different input buffer and output buffer sizes in IOProc? (From: Jeff Moore <email@hidden>)
 >Re: Different input buffer and output buffer sizes in IOProc? (From: Jesper Papmehl-Dufay <email@hidden>)

  • Prev by Date: Re: Problems in creating aggregate device
  • Next by Date: Re: My mute program kills volume, but menubar doesn't show it
  • Previous by thread: Re: Different input buffer and output buffer sizes in IOProc?
  • Next by thread: get project name from host?
  • Index(es):
    • Date
    • Thread