在AudioStreamBasicDescription
结构中:
struct AudioStreamBasicDescription {
Float64 mSampleRate;
UInt32 mFormatID;
UInt32 mFormatFlags;
UInt32 mBytesPerPacket;
UInt32 mFramesPerPacket;
UInt32 mBytesPerFrame;
UInt32 mChannelsPerFrame;
UInt32 mBitsPerChannel;
UInt32 mReserved;
};
如果我们知道 nChannelsPerFrame 和 mBitsPerChannels,我们可以这样计算 mBytesPerFrame:(
mBytesPerFrame = mBitsPerChannels * mChannelsPerFrame / 8
如果我错了,请纠正我)
我相信所有领域的存在都是出于某种原因。mBytesPerFrame 是什么?