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

Different input buffer and output buffer sizes in IOProc?


  • Subject: Different input buffer and output buffer sizes in IOProc?
  • From: Jesper Papmehl-Dufay <email@hidden>
  • Date: Tue, 12 May 2009 13:51:04 +0200

Hi!

One of our testers have reported a problem in our app where it asserts in our IOProc due to the input buffer size being different from the output buffer size.
(We calculate the buffer sizes by dividing inInputData- >mBuffers[0].mDataByteSize by (sizeof(float) * inInputData- >mBuffers[0].mNumberChannels) for the input side, and in the same way for the output size using the outOutputData AudioBufferList parameter to the IOProc.)
Is it really normal for a device to have different sizes for the input and output buffers in a single IOProc call? Or should we consider this a driver bug and handle it accordingly?


The user reports getting our assert when changing the sample rate, so it's possible the driver is in some kind of transitional state when this happens. The audio device used is a M-Audio FW410.
We use the HAL directly and install the IOProc using AudioDeviceAddIOProc, if that makes any difference.


Thanks for any help!

Regards
Jesper Papmehl-Dufay
Propellerhead Software

_______________________________________________
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


  • Follow-Ups:
    • Re: Different input buffer and output buffer sizes in IOProc?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Choppy Audio Through Core Audio
  • Next by Date: get project name from host?
  • Previous by thread: Re: Choppy Audio Through Core Audio
  • Next by thread: Re: Different input buffer and output buffer sizes in IOProc?
  • Index(es):
    • Date
    • Thread