JRTCSDK-iOS  v1.1
API文档
构造函数 | 所有成员列表
<AudioOutputCallback>协议 参考

构造函数

(void) - onFrame:sampleRateHz:channels:buf:
 

详细描述

原始音频数据输出回调事件

函数文档

◆ onFrame:sampleRateHz:channels:buf:

- (void) onFrame: (const char *_Nonnull)  outputId
sampleRateHz: (int)  iSampleRateHz
channels: (int)  iChannels
buf: (unsigned char *_Nullable)  buf 

获得播放的声音

参数
outputId输出源的自定义字符串
sampleRateHz输出源的采集频率
channels输出源的采样通道数
buf该帧的采样数据