In AudioStreamBasicDescription
struct:
struct AudioStreamBasicDescription {
Float64 mSampleRate;
UInt32 mFormatID;
UInt32 mFormatFlags;
UInt32 mBytesPerPacket;
UInt32 mFramesPerPacket;
UInt32 mBytesPerFrame;
UInt32 mChannelsPerFrame;
UInt32 mBitsPerChannel;
UInt32 mReserved;
};
if we know nChannelsPerFrame and mBitsPerChannels, we can calculate mBytesPerFrame like this:
mBytesPerFrame = mBitsPerChannels * mChannelsPerFrame / 8
(correct me if I'm wrong)
I believe that all of the fields exist for some reason. What is it for mBytesPerFrame?