Michael Zucchi
2012-02-07 08:52:26 UTC
Hi there,
I was playing with the experimental openal loopback stuff in openal-soft
HEAD but came across a problem: if I drain the output too fast, the
input wont keep up and I get sections of blank space in the output. I'm
obviously trying to drain as fast as possible, but not too fast (the
output is going to a file or codec).
Is there any suggested way to approach this or some intention to provide
the needed capability?
I presume the obvious one would be to poll and wait on AL_BUFFERS_QUEUED
presume i'd need to track this all externally somehow taking into
account sample rates and so on?
FWIW I'm not doing this for anything in particular at the moment, i'm
just experimenting.
Cheers,
Michael Z
I was playing with the experimental openal loopback stuff in openal-soft
HEAD but came across a problem: if I drain the output too fast, the
input wont keep up and I get sections of blank space in the output. I'm
obviously trying to drain as fast as possible, but not too fast (the
output is going to a file or codec).
Is there any suggested way to approach this or some intention to provide
the needed capability?
I presume the obvious one would be to poll and wait on AL_BUFFERS_QUEUED
0, but then one would need to do this on all active sources (which
probably wouldn't be too onerous a task in my scenario). Otherwise Ipresume i'd need to track this all externally somehow taking into
account sample rates and so on?
FWIW I'm not doing this for anything in particular at the moment, i'm
just experimenting.
Cheers,
Michael Z