public interface IPlayoutAudioSource
音频数据源接口
音频播放器 AudioPlayer 使用此接口获取音频设置参数、读取音频数据
| 限定符和类型 | 方法和说明 |
|---|---|
int |
channels()
音频数据通道数量
|
int |
read(byte[] data)
读取音频数据
非阻塞式读取,无数据时请返回 0 或者自行填充静音数据并返回相应长度
|
int |
sampleBits()
音频数据采样位数
可能的取值: 8, 16, 24, 32
|
int |
sampleRate()
音频数据采样率
|