前言
本章内容是android.media.AudioFormat,版本为Android 3.0 r1,翻译来自"文炜",欢迎大家访问他的博客:http://www.cnblogs.com/iezhyg/,再次感谢"文炜" !期待你加入Android 中文翻译组,联系我[email protected]。
声明
欢迎转载,但请保留文章原始出处:)
Android中文翻译组:http://goo.gl/6vJQl
正文
一、结构
public class AudioFormat extends Object
java.lang.Object
android.media.AudioFormat
二、概述
三、常量
public static final int CHANNEL_CONFIGURATION_DEFAULT
已弃用。
用 CHANNEL_OUT_DEFAULT or CHANNEL_IN_DEFAULT 代替。
常量值:1 (0x00000001)
public static final int CHANNEL_CONFIGURATION_INVALID
已弃用。
用 CHANNEL_INVALID 代替。
常量值: 0 (0x00000000)
public static final int CHANNEL_CONFIGURATION_MONO
已弃用。
用 CHANNEL_OUT_MONO or CHANNEL_IN_MONO 代替。
常量值: 2 (0x00000002)
public static final int CHANNEL_CONFIGURATION_STEREO
已弃用。
用 CHANNEL_OUT_STEREO or CHANNEL_IN_STEREO 代替。
常量值: 3 (0x00000003)
public static final int CHANNEL_INVALID
无效的音频通道掩码
常量值: 0 (0x00000000)
public static final int CHANNEL_IN_BACK
常量值: 32 (0x00000020)
public static final int CHANNEL_IN_BACK_PROCESSED
常量值: 512 (0x00000200)
public static final int CHANNEL_IN_DEFAULT
常量值: 1 (0x00000001)
public static final int CHANNEL_IN_FRONT
常量值: 16 (0x00000010)
public static final int CHANNEL_IN_FRONT_PROCESSED
常量值: 256 (0x00000100)
public static final int CHANNEL_IN_LEFT
常量值: 4 (0x00000004)
public static final int CHANNEL_IN_LEFT_PROCESSED
常量值: 64 (0x00000040)
public static final int CHANNEL_IN_MONO
常量值: 16 (0x00000010)
public static final int CHANNEL_IN_PRESSURE
常量值: 1024 (0x00000400)
public static final int CHANNEL_IN_RIGHT
常量值: 8 (0x00000008)
public static final int CHANNEL_IN_RIGHT_PROCESSED
常量值: 128 (0x00000080)
public static final int CHANNEL_IN_STEREO
常量值: 12 (0x0000000c)
public static final int CHANNEL_IN_VOICE_DNLINK
常量值: 32768 (0x00008000)
public static final int CHANNEL_IN_VOICE_UPLINK
常量值: 16384 (0x00004000)
public static final int CHANNEL_IN_X_AXIS
常量值: 2048 (0x00000800)
public static final int CHANNEL_IN_Y_AXIS
常量值: 4096 (0x00001000)
public static final int CHANNEL_IN_Z_AXIS
常量值: 8192 (0x00002000)
public static final int CHANNEL_OUT_5POINT1
常量值: 252 (0x000000fc)
public static final int CHANNEL_OUT_7POINT1
常量值: 1020 (0x000003fc)
public static final int CHANNEL_OUT_BACK_CENTER
常量值: 1024 (0x00000400)
public static final int CHANNEL_OUT_BACK_LEFT
常量值: 64 (0x00000040)
public static final int CHANNEL_OUT_BACK_RIGHT
常量值: 128 (0x00000080)
public static final int CHANNEL_OUT_DEFAULT
默认的音频通道掩码。
常量值: 1 (0x00000001)
public static final int CHANNEL_OUT_FRONT_CENTER
常量值: 16 (0x00000010)
public static final int CHANNEL_OUT_FRONT_LEFT
常量值: 4 (0x00000004)
public static final int CHANNEL_OUT_FRONT_LEFT_OF_CENTER
常量值: 256 (0x00000100)
public static final int CHANNEL_OUT_FRONT_RIGHT
常量值: 8 (0x00000008)
public static final int CHANNEL_OUT_FRONT_RIGHT_OF_CENTER
常量值: 512 (0x00000200)
public static final int CHANNEL_OUT_LOW_FREQUENCY
常量值: 32 (0x00000020)
public static final int CHANNEL_OUT_MONO
常量值: 4 (0x00000004)
public static final int CHANNEL_OUT_QUAD
常量值: 204 (0x000000cc)
public static final int CHANNEL_OUT_STEREO
常量值: 12 (0x0000000c)
public static final int CHANNEL_OUT_SURROUND
常量值: 1052 (0x0000041c)
public static final int ENCODING_DEFAULT
默认的音频数据格式
常量值: 1 (0x00000001)
public static final int ENCODING_INVALID
无效的音频数据格式
常量值: 0 (0x00000000)
public static final int ENCODING_PCM_16BIT
音频数据格式:脉冲编码调制(PCM)每个样品16位。设备保证提供支持。(参见:这里)
常量值: 2 (0x00000002)
public static final int ENCODING_PCM_8BIT
音频数据格式:脉冲编码调制(PCM)每个样品8位。设备不保证提供支持。
常量值: 3 (0x00000003)
四、补充