更新时间: 2023-10-23 16:45:52
Public 类型 | |
| enum | AUDIO_FRAME_TYPE { FRAME_TYPE_PCM16 = 0 } |
Public 属性 | |
| AUDIO_FRAME_TYPE | type |
| int | samples |
| int | bytesPerSample |
| int | channels |
| int | samplesPerSec |
| void * | buffer |
| int64_t | renderTimeMs |
| int | avsync_type |
详细描述
Definition of ExternalAudioFrame
成员枚举类型说明
◆ AUDIO_FRAME_TYPE
类成员变量说明
◆ type
| AUDIO_FRAME_TYPE rtc::ExternalAudioFrame::type |
◆ samples
| int rtc::ExternalAudioFrame::samples |
Number of samples in the audio frame: samples = (int)samplesPerCall = (int)(sampleRate × sampleInterval)
◆ bytesPerSample
| int rtc::ExternalAudioFrame::bytesPerSample |
Number of bytes per audio sample. For example, each PCM audio sample usually takes up 16 bits (2 bytes).
◆ channels
| int rtc::ExternalAudioFrame::channels |
Number of audio channels.
- 1: Mono
- 2: Stereo (the data is interleaved)
◆ samplesPerSec
| int rtc::ExternalAudioFrame::samplesPerSec |
Sampling rate per second for the audio frame: 16000 or 48000 bps.
◆ buffer
| void* rtc::ExternalAudioFrame::buffer |
Audio frame data buffer. The valid data length is: samples × channels × bytesPerSample
◆ renderTimeMs
| int64_t rtc::ExternalAudioFrame::renderTimeMs |
Timestamp to render the audio stream.
◆ avsync_type
| int rtc::ExternalAudioFrame::avsync_type |
该结构体的文档由以下文件生成:
