music.columbia.edu - JSyn mailing list wrote:
You can also run the SynthEngine in non real-time by passing
Synth.FLAG_NON_REAL_TIME when you start the engine. When you call
Synth.sleepUntilTick() then the synth engine will generate audio up to
that tick. This works with multiple threads. You should be able to do
file I/O and other slow stuff in the middle.
I do start the engine in NON_REAL_TIME, and use sleepUntilTick(), but what happens if the engine gets to the tick the thread is sleeping until, and the required amount of data has not yet been prepared for queueing?
In other words, what happens if I call sleepUntilTick(x), while tick x has already gone past? Won't this result in unpredictable data going through the units? This seems to be the problem I'm experiencing probably because of the time it takes to prepare the data.
Thanks again!
Etienne.