..
> I wanted to synchronize multiple audio streams using Java Sound API.
The Java sound API is generally considered to have a steep learning
curve, you have your work cut out for you. Starting Java coding
around '98, I approached the sound API a number of times before
I got a good enough handle on it to produce 'AudioTraces'*.
>..I
> came across Mixer interface's synchronize() method. Is this the right
> method to synchronize multiple audio streams and play together???
The documentation suggests as much, but the sound API
(and the underlying sound system) generally holds a lot of
surprises**.
> ..Is there any samples/links available??
Sun provides these examples using JavaSound
http://java.sun.com/developer/codesamples/media.html#sound
(polite cough) not much there, certainly not what you want.
There is also the more comprehensive resource at..
http://www.jsresources.org/examples/
Perhaps the quickest start into the type of classes you
need can be seen by running the AudioTraces* code.
* Get all tte AudioTrace files (source and executable jar) here..
http://www.physci.org/test/oscilloscope/
** discussed in the thread following this post..
http://groups.google.com/group/comp.lang.java.programmer/msg/c02258a163a2a6df
HTH
Andrew T.
Sundar The Great - 06 Jul 2006 07:49 GMT
Hi Andre,
Thanks for your reply. I wanted to use Mixer interfaces Synchronize()
method for mixing multiple files. How do we use it???
Kindly help
-Sundar