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;