# AudioFrame (/zh-CN/api-reference/rtc/unreal-cpp/class-audioframe) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```cpp struct AudioFrame { AUDIO_FRAME_TYPE type; int samplesPerChannel; agora::rtc::BYTES_PER_SAMPLE bytesPerSample; int channels; int samplesPerSec; void* buffer; int64_t renderTimeMs; int avsync_type; AudioFrame() : type(FRAME_TYPE_PCM16), samplesPerChannel(0), bytesPerSample(rtc::TWO_BYTES_PER_SAMPLE), channels(0), samplesPerSec(0), buffer(NULL), renderTimeMs(0), avsync_type(0), }; ``` ## 属性 [#属性] 音频帧类型,详见 [AUDIO_FRAME_TYPE](/zh-CN/api-reference/rtc/unreal-cpp/enum-audioframetype)。 每个声道的采样点数。 每个采样点的字节数。对于 PCM 来说,一般使用 16 bit,即两个字节。 声道数量(如果是立体声,数据是交叉的)。 - 1: 单声道 - 2: 双声道 每声道每秒的采样点数。 声音数据缓存区(如果是立体声,数据是交叉存储的)。 缓存区数据大小 `buffer` = `samples` × `channels` × `bytesPerSample`。 外部音频帧的渲染时间戳。 你可以使用该时间戳还原音频帧顺序;在有视频的场景中(包含使用外部视频源的场景),该参数可以用于实现音视频同步。 保留参数。