public static interface TXLivePusher.AudioCustomProcessListener
Modifier and Type | Method and Description |
---|---|
void |
onRecordPcmData(byte[] data,
long ts,
int sampleRate,
int channels,
int bits)
回调SDK录制音频PCM数据
|
void |
onRecordRawPcmData(byte[] data,
long ts,
int sampleRate,
int channels,
int bits,
boolean withBgm)
回调未经过任何处理的SDK录制音频PCM数据
|
void onRecordPcmData(byte[] data, long ts, int sampleRate, int channels, int bits)
data
- pcm数据ts
- pcm对应时间戳sampleRate
- 音频采样率channels
- 音频通道bits
- 音频bitsvoid onRecordRawPcmData(byte[] data, long ts, int sampleRate, int channels, int bits, boolean withBgm)
data
- pcm数据ts
- pcm对应时间戳sampleRate
- 音频采样率channels
- 音频通道bits
- 音频bitswithBgm
- 回调的数据是否包含bgm,当不开启回声消除时,回调的raw pcm会包含bgm