Hello Ettiene,
It is good that at least one of the outputs is non-real-time, or at
least not connected to a physical audio device. That makes it much easier.
> Actually both. I want to be able to write to file while processing
> (non-realtime) and separately write to file/network while
> playing realtime.
Since you will be bringing audio up into Java for export, you might as
well resample in Java as you mentioned. JSyn just does a simple linear
interpolation for performance reasons. Since you are probably just doing
one stream you could do a fancier spline or other form of interpolation.
JSun does not have any Java based resampling tools.
The trickiest part may be handling clock drift. If the network consumer
is running at a slightly different rate for a long time then your
buffers will overflow or underflow. You might need to monitor the
buffers and slowly adjust your rate to avoid that. The trick is doing
that in a way that is not noticeable.
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