NERecord Linux SDK 5.5.3103
Loading...
Searching...
No Matches
Public Attributes | List of all members
nerecord::NERtcAudioFormat Struct Reference

#include <nerecord_engine_defines.h>

Public Attributes

NERtcAudioType type
 
uint32_t channels
 
uint32_t sample_rate
 
uint32_t bytes_per_sample
 
uint32_t samples_per_channel
 
uint64_t timestamp
 

Detailed Description

音频格式。

Member Data Documentation

◆ bytes_per_sample

uint32_t nerecord::NERtcAudioFormat::bytes_per_sample

每个采样点的字节数:对于 PCM 来说,一般使用 16 bit,即两个字节。

◆ channels

uint32_t nerecord::NERtcAudioFormat::channels

音频频道数量(如果是立体声,数据是交叉的)。单声道:1。双声道:2。

◆ sample_rate

uint32_t nerecord::NERtcAudioFormat::sample_rate

采样率。

◆ samples_per_channel

uint32_t nerecord::NERtcAudioFormat::samples_per_channel

每个频道的样本数量。

◆ timestamp

uint64_t nerecord::NERtcAudioFormat::timestamp

时间戳

◆ type

NERtcAudioType nerecord::NERtcAudioFormat::type

音频类型。


The documentation for this struct was generated from the following file: