| Package | Description | 
|---|---|
| javax.sound.sampled | Provides interfaces and classes for capture, processing, and playback of sampled audio data. | 
| javax.sound.sampled.spi | Supplies abstract classes for service providers to subclass when
offering new audio devices, sound file readers and writers, or audio format converters. | 
| Class and Description | 
|---|
| AudioFileFormat An instance of the  AudioFileFormatclass 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. | 
| AudioFileFormat.Type An instance of the  Typeclass represents one of the
 standard types of audio file. | 
| AudioFormat AudioFormatis the class that specifies a particular arrangement of data in a sound stream. | 
| AudioFormat.Encoding The  Encodingclass  names the  specific type of data representation
 used for an audio stream. | 
| AudioInputStream An audio input stream is an input stream with a specified audio format and
 length. | 
| BooleanControl.Type An instance of the  BooleanControl.Typeclass identifies one kind of
 boolean control. | 
| Clip The  Clipinterface represents a special kind of data line whose
 audio data can be loaded prior to playback, instead of being streamed in
 real time. | 
| CompoundControl.Type An instance of the  CompoundControl.Typeinner class identifies one kind of
 compound control. | 
| Control Linesoften have a set of controls, such as gain and pan, that affect
 the audio signal passing through the line. | 
| Control.Type An instance of the  Typeclass represents the type of
 the control. | 
| DataLine DataLineadds media-related functionality to its
 superinterface,. | 
| EnumControl.Type An instance of the  EnumControl.Typeinner class identifies one kind of
 enumerated control. | 
| FloatControl.Type An instance of the  FloatControl.Typeinner class identifies one kind of
 float control. | 
| Line The  Lineinterface represents a mono or multi-channel
 audio feed. | 
| Line.Info A  Line.Infoobject contains information about a line. | 
| LineEvent The  LineEventclass encapsulates information that a line
 sends its listeners whenever the line opens, closes, starts, or stops. | 
| LineEvent.Type The LineEvent.Type inner class identifies what kind of event occurred on a line. | 
| LineListener Instances of classes that implement the  LineListenerinterface can register to
 receive events when a line's status changes. | 
| LineUnavailableException A  LineUnavailableExceptionis an exception indicating that a
 line cannot be opened because it is unavailable. | 
| Mixer A mixer is an audio device with one or more lines. | 
| Mixer.Info The  Mixer.Infoclass represents information about an audio mixer,
 including the product's name, version, and vendor, along with a textual
 description. | 
| Port.Info The  Port.Infoclass extendswith additional information specific to ports, including the port's name
 and whether it is a source or a target for its mixer. | 
| SourceDataLine A source data line is a data line to which data may be written. | 
| TargetDataLine A target data line is a type of  from which
 audio data can be read. | 
| UnsupportedAudioFileException An  UnsupportedAudioFileExceptionis an exception indicating that an
 operation failed because a file did not contain valid data of a recognized file
 type and format. | 
| Class and Description | 
|---|
| AudioFileFormat An instance of the  AudioFileFormatclass 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. | 
| AudioFileFormat.Type An instance of the  Typeclass represents one of the
 standard types of audio file. | 
| AudioFormat AudioFormatis the class that specifies a particular arrangement of data in a sound stream. | 
| AudioFormat.Encoding The  Encodingclass  names the  specific type of data representation
 used for an audio stream. | 
| AudioInputStream An audio input stream is an input stream with a specified audio format and
 length. | 
| Mixer A mixer is an audio device with one or more lines. | 
| Mixer.Info The  Mixer.Infoclass represents information about an audio mixer,
 including the product's name, version, and vendor, along with a textual
 description. | 
| UnsupportedAudioFileException An  UnsupportedAudioFileExceptionis an exception indicating that an
 operation failed because a file did not contain valid data of a recognized file
 type and format. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2023, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.