Render callback not producing enough samples
Render callback not producing enough samples
- Subject: Render callback not producing enough samples
- From: Alberto Ricci <email@hidden>
- Date: Thu, 18 Mar 2004 11:15:20 +0100
Hello,
I've been off list for some time now, I tried searching but couldn't
find any past post regarding this.
Suppose I want to play some data - which is generated in real time -
through the default output unit. Such data is generated at an
approximate rate of 44100 samples per second, but some frames may be
skipped every once in a while (just a few samples here and there,
resulting in an effective average rate of 44099.9 Hz or so), so my
Render callback wouldn't know what samples to generate in those cases
in order to ensure a precise 44100 Hz rate.
What should my Render callback do in such situations? Always return
the requested number of frames, no matter what, therefore filling the
gaps with silence (or with the last frame's value)?
Or can it return a smaller amount of samples and have CoreAudio
properly handle that?
Thanks,
Alberto.
_______________________________________________
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.