ZegoMediaPlayerAudioPlayDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | zego-api-mediaplayer-oc.h |
– onPlayAudioData:length:sample_rate:channels:bit_depth:playerIndex:
required method
音频数据回调,仅 PCM 数据有效
- (void)onPlayAudioData:(unsigned char *const)data length:(int)length sample_rate:(int)sample_rate channels:(int)channels bit_depth:(int)bit_depth playerIndex:(ZegoMediaPlayerIndex)index
Parameters
data |
音频原始数据 |
---|---|
length |
音频数据大小 |
sample_rate |
采样率 |
channels |
通道数 |
bit_depth |
位深 |
index |
播放器序号 |
Discussion
Note: 同步回调,SDK 会直接使用该段内存中的数据
Declared In
zego-api-mediaplayer-oc.h