#include <AVDefines.h>
|
virtual void | OnAudioRecordCallback (const unsigned char *pData, int data_len, int sample_rate, int num_channels, int bit_depth, unsigned int type) |
|
virtual void | OnAudioRecordCallback (const unsigned char *pData, int data_len, int sample_rate, int num_channels, int bit_depth) |
|
◆ OnAudioRecordCallback() [1/2]
virtual void ZEGO::AV::IZegoAudioRecordCallback::OnAudioRecordCallback |
( |
const unsigned char * |
pData, |
|
|
int |
data_len, |
|
|
int |
sample_rate, |
|
|
int |
num_channels, |
|
|
int |
bit_depth |
|
) |
| |
|
inlinevirtual |
音频录制回调
- Warning
- Deprecated,请使用带 type 参数的 OnAudioRecordCallback 回调
◆ OnAudioRecordCallback() [2/2]
virtual void ZEGO::AV::IZegoAudioRecordCallback::OnAudioRecordCallback |
( |
const unsigned char * |
pData, |
|
|
int |
data_len, |
|
|
int |
sample_rate, |
|
|
int |
num_channels, |
|
|
int |
bit_depth, |
|
|
unsigned int |
type |
|
) |
| |
|
inlinevirtual |
音频录制结果回调
- Parameters
-
pData | SDK 录制的音频数据 |
data_len | 数据长度 |
sample_rate | 采样率,不固定,以当前值为准 |
num_channels | 通道数量,单通道 |
bit_depth | 位深度,16 bit |
type | 音频类型,参考 ZegoAVAPIAudioRecordMask |
- Attention
- 开启音频录制并设置成功代理对象后,用户调用此 API 获取 SDK 录制的音频数据。用户可自行对数据进行处理,例如:存储等
- Note
- 存储数据时注意取 sampleRate、numOfChannels、bitDepth 参数写包头信息
The documentation for this class was generated from the following file: