Public 成员函数 | |
| void | onAudioInputFrame (string inputId, int sampleRateHz, int channels, IntPtr buf, int len, int playDelayMS, int recDelayMS, int clockDrift) |
| void | onAudioOutputFrame (string outputId, int sampleRateHz, int channels, IntPtr buf, int len) |
详细描述
原始音频数据回调事件
成员函数说明
◆ onAudioInputFrame()
| void JCSDK.JCMediaDevice.JCAudioFrameCallback.onAudioInputFrame | ( | string | inputId, |
| int | sampleRateHz, | ||
| int | channels, | ||
| IntPtr | buf, | ||
| int | len, | ||
| int | playDelayMS, | ||
| int | recDelayMS, | ||
| int | clockDrift | ||
| ) |
获得采集的音频
- 参数
-
inputId 音频输入设备 sampleRateHz 输入源的采样频率 channels 输入源的频道数量 buf 该帧的采样数据 len 采样数据的字节长度 playDelayMS 播放延时 recDelayMS 采集延时 clockDrift 时钟漂移
◆ onAudioOutputFrame()
| void JCSDK.JCMediaDevice.JCAudioFrameCallback.onAudioOutputFrame | ( | string | outputId, |
| int | sampleRateHz, | ||
| int | channels, | ||
| IntPtr | buf, | ||
| int | len | ||
| ) |
获得播放的音频
- 参数
-
outputId 音频输出设备 sampleRateHz 输出源的采集频率 channels 输出源的采样通道数 buf 该帧的采样数据 len 采样数据的字节长度
该接口的文档由以下文件生成:
- JCSDK/JCSDK/JCMediaDevice/JCMediaDeviceCallback.cs
