Oops: Invalid input size problem ;-)
Oops: Invalid input size problem ;-)
- Subject: Oops: Invalid input size problem ;-)
- From: john <email@hidden>
- Date: Mon, 19 Apr 2004 19:14:03 -0400
Hey Mike,
I manually set the mDataByteSize to double the buffer input size and
got an error -50. Looking through the list for what this was, I ran
across someone mentioning that you can't use
AudioConverterConvertBuffer() for sample rate changes.
Sorry about that.
-- John
Hi Mike,
If this helps at all, here's a log output of what's going on with the
sizes *before* AudioConverterConvertBuffer() is called. The
AudioConverter is setup to convert from 16bit 44.1 2 channel signed
int to 32bit 44.1 2 channel float. When the converter is reset (as
below), the output sample rate is changed to 38khz (though it happens
with any rate.
renderOutput - 4096 8192 (buffer input size, mDataByteSize)
renderOutput - 4096 8192
resetConverter
renderOutput - 4096 8192 (the call following this errors invalid input
size)
renderOutput - 0 0
-- John
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.