实时音视频 SPARKRTC-数据类型:HWRtcAudioFrame
HWRtcAudioFrame
属性 |
描述 |
---|---|
@property (nonatomic, assign) HWRtcAudioFrameType frameType; |
音频帧类型,具体请参见HWRtcAudioFrameType |
@property (nonatomic, assign) NSUInteger samples; |
每个声道的采样点数,iSamples=iSamplesPerSec * 10ms /1000 |
@property (nonatomic, assign) NSUInteger samplesPerSec; |
采样率 |
@property (nonatomic, assign) NSUInteger bytesPerSample; // bitsPerSample |
每个采样点的字节数,pcm数据一般2字节 |
@property (nonatomic, assign) NSUInteger channels; |
声道数 |
@property (strong, nonatomic) NSData * _Nullable data; |
数据缓冲区,长度=samples*bytesPerSample*channels |