Atitit java sound api体系 javadoc与类层级
目录
1.1. 软件包 javax.sound.sampled 1
2. 软件包 javax.sound.sampled 的分层结构 4
提供用于捕获、处理和回放取样的音频数据的接口和类。
提供用于捕获、处理和回放取样的音频数据的接口和类。
请参见:
描述
Clip 接口表示特殊种类的数据行,该数据行的音频数据可以在回放前加载,而不是实时流出。 | |
DataLine 将与介质相关的功能添加到其超接口 Line。 | |
Line 接口表示单声道或多声道音频供给。 | |
可以注册实现 LineListener 接口的类的实例来接收行状态更改时发生的事件。 | |
混频器是一个具有一行或多行的音频设备。 | |
端口是往返于音频输入或输出线与音频设备之间的简单线路。 | |
源数据行是可以写入数据的数据行。 | |
目标数据行是可以从中读取音频数据的某种类型的 DataLine。 |
AudioFileFormat 类的实例描述音频文件,包括文件类型、文件长度(以字节为单位)、文件中包含的音频数据的长度(以示例帧为单位),以及音频数据的格式。 | |
Type 类的实例表示音频文件的标准类型之一。 | |
AudioFormat 是在声音流中指定特定数据安排的类。 | |
Encoding 类命名用于音频流的数据表示形式的特定类型。 | |
音频输入流是具有指定音频格式和长度的输入流。 | |
AudioPermission 类表示对音频系统资源的访问权限。 | |
AudioSystem 类充当取样音频系统资源的入口点。 | |
BooleanControl 能够在影响行音频的两个可能的设置之间切换。 | |
BooleanControl.Type 类的实例标识一种 boolean 控件。 | |
CompoundControl(如图形均衡器)控制两个或多个相关属性,每个属性本身都表示为 Control。 | |
CompoundControl.Type 内部类的实例标识一种组合控件。 | |
Line 常常具有一个控件(如 gain 和 pan)集合,这些控件都会影响通过行传递的音频信号。 | |
Type 类的实例表示控件的类型。 | |
除了继承自其超类的类信息之外,DataLine.Info 还提供特定于数据行的其他信息。 | |
EnumControl 提供对一组截然不同的可能值的控制,每个值都由一个对象表示。 | |
EnumControl.Type 内部类的实例标识了某种枚举控件。 | |
FloatControl 对象提供对浮点值范围的控制。 | |
FloatControl.Type 内部类的实例标识了某种 float 控件。 | |
Line.Info 对象包含关于行的信息。 | |
LineEvent 类封装某一行每次打开、关闭、启动或停止时向其侦听器发送的信息。 | |
该 LineEvent.Type 内部类标识行上所发生事件的种类。 | |
Mixer.Info 类表示关于音频混频器的信息,包括产品的名称、版本和供应商,以及文本描述。 | |
该 Port.Info 类扩展了具有其他特定于端口的信息的 Line.Info,这些信息包括端口的名称以及该端口是否是其混频器的源或目标。 | |
ReverbType 类提供用于访问应用于音频信号的各种回响设置的方法。 |
异常摘要 | |
LineUnavailableException 是指示某一行因为不可用而无法打开的异常。 | |
UnsupportedAudioFileException 是指示因为文件没有包含可识别文件类型和格式的有效数据而致使操作失败的异常。 |
软件包分层结构:
- java.lang.Object
- javax.sound.sampled.AudioFileFormat
- javax.sound.sampled.AudioFileFormat.Type
- javax.sound.sampled.AudioFormat
- javax.sound.sampled.AudioFormat.Encoding
- javax.sound.sampled.AudioSystem
- javax.sound.sampled.Control
- javax.sound.sampled.BooleanControl
- javax.sound.sampled.CompoundControl
- javax.sound.sampled.EnumControl
- javax.sound.sampled.FloatControl
- javax.sound.sampled.Control.Type
- javax.sound.sampled.BooleanControl.Type
- javax.sound.sampled.CompoundControl.Type
- javax.sound.sampled.EnumControl.Type
- javax.sound.sampled.FloatControl.Type
- java.util.EventObject (implements java.io.Serializable)
- javax.sound.sampled.LineEvent
- java.io.InputStream (implements java.io.Closeable)
- javax.sound.sampled.AudioInputStream
- javax.sound.sampled.Line.Info
- javax.sound.sampled.DataLine.Info
- javax.sound.sampled.Port.Info
- javax.sound.sampled.LineEvent.Type
- javax.sound.sampled.Mixer.Info
- java.security.Permission (implements java.security.Guard, java.io.Serializable)
- java.security.BasicPermission (implements java.io.Serializable)
- javax.sound.sampled.AudioPermission
- java.security.BasicPermission (implements java.io.Serializable)
- javax.sound.sampled.ReverbType
- java.lang.Throwable (implements java.io.Serializable)
- java.lang.Exception
- javax.sound.sampled.LineUnavailableException
- javax.sound.sampled.UnsupportedAudioFileException
- java.lang.Exception
- java.util.EventListener
- javax.sound.sampled.LineListener
- javax.sound.sampled.Line
- javax.sound.sampled.DataLine
- javax.sound.sampled.Clip
- javax.sound.sampled.SourceDataLine
- javax.sound.sampled.TargetDataLine
- javax.sound.sampled.Mixer
- javax.sound.sampled.Port
- javax.sound.sampled.DataLine
利用纯java捕获和播放音频 - 二郎三郎 - 博客园.html