Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2006

Tip: Looking for answers? Try searching our database.

Help!!! in Java Sound API

Thread view: 
Sundar The Great - 04 Jul 2006 13:36 GMT
Hi,
I wanted to synchronize multiple audio streams using Java Sound API. I
came across Mixer interface's synchronize() method. Is this the right
method to synchronize multiple audio streams and play together??? Is
there any other class/method to do this job??? I dont know how to use
this Synchronize method in my project. Is there any samples/links
available??

Kindly Help

-Sundar
andrewthommo@gmail.com - 04 Jul 2006 15:30 GMT
..
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.