Re: Signaling the end of audio conversion
Re: Signaling the end of audio conversion
- Subject: Re: Signaling the end of audio conversion
- From: James McCartney <email@hidden>
- Date: Wed, 15 Oct 2003 01:45:20 -0700
On Oct 14, 2003, at 11:55 PM, Stevo Brock wrote:
I've been using AudioConverterFillComplexBuffer for a while now and
because of some bugs, just realized I have no idea exactly how to tell
it I'm out of data. I've scoured the docs and sample apps and none of
them seem to mention it or do it correctly. Here's the scenario...
A) set ioNumberDataPackets to 0, ioBufferList->...mDataByteSize to 0
and return noErr.
That is the correct way to signal end-of-stream.
Upon which fillBufferDataProc is called endlessly.
Your input proc may be called more times after you have signalled end
of stream. You should keep returning zero.
What formats are you converting from, to and what sizes are you pulling
for and supplying?
James McCartney email@hidden
Apple CoreAudio
--
--- james mccartney email@hidden <
http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language
_______________________________________________
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.