#include <JCMediaDevice.h>
构造函数 | |
(void) | - onAudioInputFrame:sampleRateHz:channels:buf:playDelayMS:recDelayMS:clockDrift: |
(void) | - onAudioOutputFrame:sampleRateHz:channels:buf: |
详细描述
原始音频数据回调事件
函数文档
◆ onAudioInputFrame:sampleRateHz:channels:buf:playDelayMS:recDelayMS:clockDrift:
- (void) onAudioInputFrame: | (NSString *_Nonnull) | inputId | |
sampleRateHz: | (int) | sampleRateHz | |
channels: | (int) | channels | |
buf: | (unsigned char *_Nonnull) | buf | |
playDelayMS: | (int) | playDelayMS | |
recDelayMS: | (int) | recDelayMS | |
clockDrift: | (int) | clockDrift | |
获得采集的音频
- 参数
-
inputId 输入源的自定义字符串 sampleRateHz 输入源的采样频率 channels 输入源的频道数量 buf 该帧的采样数据 playDelayMS 播放延时 recDelayMS 采集延时 clockDrift 时钟漂移
◆ onAudioOutputFrame:sampleRateHz:channels:buf:
- (void) onAudioOutputFrame: | (NSString *_Nonnull) | outputId | |
sampleRateHz: | (int) | sampleRateHz | |
channels: | (int) | channels | |
buf: | (unsigned char *_Nonnull) | buf | |
获得播放的声音
- 参数
-
outputId 输出源的自定义字符串 sampleRateHz 输出源的采集频率 channels 输出源的采样通道数 buf 该帧的采样数据
该协议的文档由以下文件生成:
- JCSDKOC/JCSDKOC/JCMediaDevice/JCMediaDevice.h