Top Description Interfaces Classes
module java.desktop

Package javax.sound.sampled


Provides interfaces and classes for capture, processing, and playback of sampled audio data.

Related Documentation

For more information on using Java Sound see: Please note: In the javax.sound.sampled APIs, a null reference parameter to methods is incorrect unless explicitly documented on the method as having a meaningful interpretation. Usage to the contrary is incorrect coding and may result in a run time exception either immediately or at some later time. NullPointerException is an example of typical and acceptable run time exception for such cases.
Since
1.3

Interface Summary

Modifier and TypeInterface and Description
public interface
Clip

The Clip interface represents a special kind of data line whose audio data can be loaded prior to playback, instead of being streamed in real time.

public interface
DataLine

DataLine adds media-related functionality to its superinterface, Line.

public interface
Line

The Line interface represents a mono or multi-channel audio feed.

public interface
LineListener

Instances of classes that implement the LineListener interface can register to receive events when a line's status changes.

public interface
Mixer

A mixer is an audio device with one or more lines.

public interface
Port

Ports are simple lines for input or output of audio to or from audio devices.

public interface
SourceDataLine

A source data line is a data line to which data may be written.

public interface
TargetDataLine

A target data line is a type of DataLine from which audio data can be read.

Class Summary

Modifier and TypeClass and Description
public class
AudioFileFormat

An instance of the AudioFileFormat class describes an audio file, including the file type, the file's length in bytes, the length in sample frames of the audio data contained in the file, and the format of the audio data.

public class
AudioFormat

AudioFormat is the class that specifies a particular arrangement of data in a sound stream.

public class
AudioInputStream

An audio input stream is an input stream with a specified audio format and length.

public class
AudioPermission

The AudioPermission class represents access rights to the audio system resources.

public class
AudioSystem

The AudioSystem class acts as the entry point to the sampled-audio system resources.

public abstract class
BooleanControl

A BooleanControl provides the ability to switch between two possible settings that affect a line's audio.

public abstract class
CompoundControl

A CompoundControl, such as a graphic equalizer, provides control over two or more related properties, each of which is itself represented as a Control.

public abstract class
Control

Lines often have a set of controls, such as gain and pan, that affect the audio signal passing through the line.

public abstract class
EnumControl

An EnumControl provides control over a set of discrete possible values, each represented by an object.

public abstract class
FloatControl

A FloatControl object provides control over a range of floating-point values.

public class
LineEvent

The LineEvent class encapsulates information that a line sends its listeners whenever the line opens, closes, starts, or stops.

public class
LineUnavailableException

A LineUnavailableException is an exception indicating that a line cannot be opened because it is unavailable.

public class
ReverbType

The ReverbType class provides methods for accessing various reverberation settings to be applied to an audio signal.

public class
UnsupportedAudioFileException

An UnsupportedAudioFileException is an exception indicating that an operation failed because a file did not contain valid data of a recognized file type and format.