> Reading from the file is slower than the possible processing speed,
> which results in buffer underruns.
It should not be so slow. Make sure you use a BufferedInputStream or it
will be very very slow.
> So my question: Is there a way (and if so, how) to control the speed
> of the synthEngine while processing in non real-time (or at least to
> let it wait for slower inputs)?
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.
Thank you,
Phil Burk
---------------------------------------
SoftSynth, Audio Research and Development
http://www.softsynth.com/75 Pleasant Lane, San Rafael, CA, 94901 USA
Phone/FAX: 1-415-453-4320
---------------------------------------
_______________________________________________
JSyn mailing list
JSyn@...
To change digest mode or to make other administrative changes visit:
http://music.columbia.edu/mailman/listinfo/jsyn