Different input buffer and output buffer sizes in IOProc?
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