Re: Invalid input size problem
Re: Invalid input size problem
- Subject: Re: Invalid input size problem
- From: john <email@hidden>
- Date: Mon, 19 Apr 2004 19:04:43 -0400
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
Hi Mike,
I'm using AudioConverterConvertBuffer(), so I don't have the
ioNumberDataPackets parameter.
-- John
in your AudioConverterComplexInputDataProc, do the values for
*ioNumberDataPackets and ioData->mBuffers[N].mDataByteSize match up?
if the sample rate changes, then the AudioConverter may be asking for
a different number of frames (via *ioNumberDataPackets). if you
don't set mDataByteSize to match up for the number of frames you're
telling the AC via *ioNumberDataPackets, i bet you'll get
kAudioConverterErr_InvalidInputSize.
-mike
_______________________________________________
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.