Re: AudioConverter buffer size and other questions Re: Convert to float and more
Re: AudioConverter buffer size and other questions Re: Convert to float and more
- Subject: Re: AudioConverter buffer size and other questions Re: Convert to float and more
- From: Roy Lovejoy <email@hidden>
- Date: Fri, 11 Jul 2003 10:41:25 -0700
Okay.. Apparently I'm in the same boat..
In my IOProc, I call:
AudioConverterGetProperty(kAudioConverterPropertyCalculateInputBufferSiz
e), passing in the AudioBuffer.mDataByteSize
I get out the input buffer size..
I grab that much data, pass it to AudioConverterConvertBuffer(),
Alls well.
until the last packet, when the input buffer size is less,
I'd thought I'd be "Mr. Clever Dan", by letting AudioConverter figure
the reverse out-
I call
AudioConverterGetProperty(kAudioConverterPropertyCalculateOutputBufferSi
ze), passing in the smaller-than-normal input buffer size, and getting
the smaller-than-normal output size.
but with _SOME_INSTANCES_ I still get 'insz' for
AudioConverterConvertBuffer(),
(not all)
I would have thought that if you ask AC what buffer sizes IT expects,
you'd NEVER get an error with AudioConverterConvertBuffer(), after all,
it told you what it wants..
Right???
_______________________________________________
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.