Take a look here
This is the complete audio interface documentation.
http://download.oracle.com/javase/1.5.0/docs/guide/sound/programmer_guide/
Besides
- Chapter 4: Sync playback on multiple lines
- Chapter 6: Audio Processing with Controls
BUT
this is what i found in jsresource faq
How to synchronize two or more playback lines?
Mixer synchronization features are not implemented. However, playback usually stays in sync.
How to synchronize playback (SourceDataLines) with recording (TargetDataLines)?
As with several playback lines from the same mixer object, the playback and recording lines from the same mixer object remain in sync after they are started. In practice, this means that you can easily synchronize this procedure only with the "Direct Audio Device" mixers. Since the Java Sound Audio Engine provides only playback lines and no recording lines, synchronization of playback / recording is not so simple with the Java Sound Engine.
If the playback and recording strings come from different mixer objects, you need to synchronize the sound cards represented by the mixer objects. Thus, the situation is similar to external synchronization.
AND
The main problem is the buffering and processing of microphone sounds and real-time, a practical way to use an external clock
And here is a bunch of java sound resources, I think you should look at the sound monitoring section in the api documentation and try to run timedelay on the beats and outputs of the monitor, it's a little complicated, I am also interested in this issue, I will try to find out if I can do it so you know
Take a look at these links and it will be easy as I found and read a description of these processing libraries.
Synxmax
source share