Apple文档中AudioStreamBasicDescription如下:
struct AudioStreamBasicDescription
{
Float64 mSampleRate;
UInt32 mFormatID;
UInt32 mFormatFlags;
UInt32 mBytesPerPacket;
UInt32 mFramesPerPacket;
UInt32 mBytesPerFrame;
UInt32 mChannelsPerFrame;
UInt32 mBitsPerChannel;
UInt32 mReserved;
};
以下是自己的一些理解:
1)mSampleRate:是音频格式的采样率,单位为HZ;这个的话对于有过音频知识了解的都应该知道哈
2)mFormatID:是对应音频格式的ID,即各种格式;每种格式在API有对应说明,如kAudioFormatLinearPCM等
3)mFormatFlags:这里主要是想重点记录下该结构项的理解,(以下为个人理解)</