Package com.zego.zegoaudioroom
Interface ZegoAudioLiveRecordDelegate
-
public interface ZegoAudioLiveRecordDelegate
录音接口,如开启录音后,采集到的音频数据会通过此接口返回。Copyright © 2017 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAudioRecord(byte[] audioData, int sampleRate, int numberOfChannels, int bitDepth, int type)
接收 SDK 传回的音频源数据。
-
-
-
Method Detail
-
onAudioRecord
void onAudioRecord(byte[] audioData, int sampleRate, int numberOfChannels, int bitDepth, int type)
接收 SDK 传回的音频源数据。存储数据时注意取 sampleRate、numOfChannels、bitDepth 参数写包头信息。
- Parameters:
audioData
- 录制的音频源数据sampleRate
- 采样率,与ZegoAudioRoom.enableSelectedAudioRecord(ZegoAudioRecordConfig)
中设置的值一致numberOfChannels
- 声道数bitDepth
- 位深,通常为 16 bittype
- 音频源类型,取值为ZegoConstants.AudioRecordMask
的单值或者组合值
-
-