Media Section Index | Page 8
Can I play multiple audio files simultaneously?
Sure. Just get an AudioClip for each sound and call play() or loop() for each one.
How can I record audio from my Java program?
Support for audio recording is not part of the core Java libraries. Instead, you need to use the Java Media Framework (http://java.sun.com/products/java-media/jmf).more
Can I use the Java2D capabilities with the 1.1 Java runtime environment?
The short answer is no. The libraries are part of the standard Java 2 platform release (starting with version 1.2). Since they modify core classes in the java.awt.* libraries, you can not pull the...more
How do I play sound in an application?
Starting with the 1.2 release of Java, you can use the newAudioClip() method of Applet to get an AudioClip to play in an application.
File file = new File("bark.wav");
AudioClip clip = Applet.new...more