Uses of Package
javax.sound.sampled
Package
Description
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Supplies abstract classes for service providers to subclass when offering new
audio devices, sound file readers and writers, or audio format converters.
-
ClassDescriptionAn 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.An instance of theType
class represents one of the standard types of audio file.AudioFormat
is the class that specifies a particular arrangement of data in a sound stream.TheEncoding
class names the specific type of data representation used for an audio stream.An audio input stream is an input stream with a specified audio format and length.An instance of theBooleanControl.Type
class identifies one kind of boolean control.TheClip
interface represents a special kind of data line whose audio data can be loaded prior to playback, instead of being streamed in real time.An instance of theCompoundControl.Type
inner class identifies one kind of compound control.Lines
often have a set of controls, such as gain and pan, that affect the audio signal passing through the line.An instance of theType
class represents the type of the control.DataLine
adds media-related functionality to its superinterface,Line
.An instance of theEnumControl.Type
inner class identifies one kind of enumerated control.An instance of theFloatControl.Type
inner class identifies one kind of float control.TheLine
interface represents a mono or multi-channel audio feed.ALine.Info
object contains information about a line.TheLineEvent
class encapsulates information that a line sends its listeners whenever the line opens, closes, starts, or stops.The LineEvent.Type inner class identifies what kind of event occurred on a line.Instances of classes that implement theLineListener
interface can register to receive events when a line's status changes.ALineUnavailableException
is an exception indicating that a line cannot be opened because it is unavailable.A mixer is an audio device with one or more lines.TheMixer.Info
class represents information about an audio mixer, including the product's name, version, and vendor, along with a textual description.ThePort.Info
class extendsLine.Info
with additional information specific to ports, including the port's name and whether it is a source or a target for its mixer.A source data line is a data line to which data may be written.A target data line is a type ofDataLine
from which audio data can be read.AnUnsupportedAudioFileException
is an exception indicating that an operation failed because a file did not contain valid data of a recognized file type and format. -
ClassDescriptionAn 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.An instance of theType
class represents one of the standard types of audio file.AudioFormat
is the class that specifies a particular arrangement of data in a sound stream.TheEncoding
class names the specific type of data representation used for an audio stream.An audio input stream is an input stream with a specified audio format and length.A mixer is an audio device with one or more lines.TheMixer.Info
class represents information about an audio mixer, including the product's name, version, and vendor, along with a textual description.AnUnsupportedAudioFileException
is an exception indicating that an operation failed because a file did not contain valid data of a recognized file type and format.