# AgoraAudioFrame (/zh-CN/api-reference/rtc/macos/class-audioframe)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```objc
__attribute__((visibility("default"))) @interface AgoraAudioFrame : NSObject
@property(assign, nonatomic) NSInteger samplesPerChannel;
@property(assign, nonatomic) NSInteger bytesPerSample;
@property(assign, nonatomic) NSInteger channels;
@property(assign, nonatomic) NSInteger samplesPerSec;
@property(assign, nonatomic) void* _Nullable buffer;
@property(assign, nonatomic) int64_t renderTimeMs;
@property(assign, nonatomic) int64_t presentationMs;
@property(assign, nonatomic) NSInteger avSyncType;
@property(assign, nonatomic) uint32_t rtpTimestamp;
@end
```
## 属性 [#属性]
音频帧中每个声道的采样点数。
每个采样点的字节数。对于 PCM,此参数通常设置为 16 位(2 字节)。
音频声道数(如果为立体声,则数据交错排列)。
- 1:单声道。
- 2:立体声。
音频帧中每个声道的采样率。
音频帧的数据缓冲区。当音频帧使用立体声道时,数据缓冲区为交错格式。缓冲区大小为:`buffer` = `samples` × `channels` × `bytesPerSample`。
外部音频帧的时间戳(毫秒)。你可以使用该时间戳恢复采集音频帧的顺序,并在视频场景中同步音频和视频帧,包括使用自定义视频源的场景。
预留参数
音频帧中第一个采样点的 RTP 时间戳。