跳转至
400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

TKAudioFrame类

说明 类型
Inherits from NSObject
Declared in TKRoomDefines.h

概览

音频数据信息

samples

Number of samples in this frame

@property (assign, nonatomic) NSInteger samples;

bytesPerSample

NNumber of bytes per sample: 2 for PCM16

@property (assign, nonatomic) NSInteger bytesPerSample;

channels

Number of channels (data are interleaved if stereo)

@property (assign, nonatomic) NSInteger channels;

samplesPerSec

Sampling rate

@property (assign, nonatomic) NSInteger samplesPerSec;

format

Sampling format

@property (assign, nonatomic) TKSampleFormat format;

buffer

Data buffer

@property (nonatomic) void *buffer;