Re: More AudioConverter problems...
Re: More AudioConverter problems...
- Subject: Re: More AudioConverter problems...
- From: Doug Wyatt <email@hidden>
- Date: Tue, 5 Nov 2002 08:39:58 -0800
This can happen when:
- you call AudioConverterConvertBuffer and supply something other than
precisely the right amount of input to generate the requested amount of
output. A common cause is attempting to do a sample rate conversion
with ConvertBuffer; our SRC algorithms require slightly varying amounts
of input to produce any given amount of output, so you have to use
FillBuffer or FillComplexBuffer if doing a SRC.
- an input callback returns more than 0 bytes, but less than 1 frame
(according to the format's bytes per frame)
If this doesn't clear it up ... what formats are you converting
from/to, and which call are you using?
hth,
Doug
On Monday, Nov 4, 2002, at 11:36 US/Pacific, email@hidden
wrote:
Hello,
I have just recently noticed getting this error using an
AudioConverter:
kAudioConverterErr_InvalidInputSize
I'm confused about this since it doesn't happen all the time and the
data size never changes between calls that fail or succeed. In
addition, even when the error happens there isn't always missing audio
in the final conversion.
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.com
_______________________________________________
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.