Previous | Next | Trail Map | Sound | Java Sound

Java Sound Engine Integration

Java Sound provides a very high-quality 64-channel audio rendering and MIDI sound synthesis engine that: The new sound engine is integrated into the Java Virtual Machine as a core library.

Using the Java Sound Engine

With JDK 1.2, you can create and play AudioClips from both applets and applications. The clips can be any of the following audio file formats: The sound engine can handle 8- and 16-bit audio data at virtually any sample rate. In JDK 1.2, audio files are rendered at a sample rate of 22kHz in 16-bit stereo. If the hardware doesn't support 16-bit data or stereo playback, audio is output in 8-bit or mono.

There's no need to worry about the impact of audio-rich web pages on computing resources--the Java Sound engine minimizes the use of a system's CPU to process sound files. For example: a 24-voice MIDI file uses only 20% of the CPU on a Pentium 90MHz system.

Accessing the Java Sound Engine

A full-featured Java Sound API is currently under development. This API will provide access to the underlying synthesis and rendering engine and enable the creation of high-quality telephony and video conferencing applications.

With the Java Sound API, professional musicians and sound designers will be able to develop new sounds that can be delivered over the Internet and used seamlessly with Java Sound.

Java Sound and Java Media

Java Sound is part of the Java Media family, which addresses the increasing demand for multimedia in the enterprise by providing a unified, non-proprietary, platform-neutral solution for incorporating time-based media, 2D fonts, graphics, and images, speech input and output, 3D models, and telephony in Java programs. By providing standard players and integrating these supporting technologies, the Java Media APIs enable developers to produce and distribute compelling, media-rich content.

Java Sound provides uniform access to underlying platform sound capabilities, enabling Java programs to read and write sampled and synthesized audio data Higher-level services such as compression, decompression, synchronization, streaming, container read/write, and network transport are handled by the Java Media Framework (JMF). JMF provides a simple, unified way for Java Programs to synchronize and display time-based data such as audio and video. Sun's implementation of JMF uses the Java Sound engine to render audio data.

For more information about the Java Media Framework and the other Java Media technologies, visit http://java.sun.com/products/java-media.


Previous | Next | Trail Map | Sound | Java Sound