mBytesPerFrame
The number of bytes from the start of one frame to the start of the next frame in an audio buffer.
Declaration
var mBytesPerFrame: UInt32Discussion
For an audio buffer containing interleaved data for n channels, with each sample of type AudioSampleType, calculate the value for this field as follows:
mBytesPerFrame = n * sizeof (AudioSampleType);For an audio buffer containing noninterleaved (monophonic) data, also using AudioSampleType samples, calculate the value for this field as follows:
mBytesPerFrame = sizeof (AudioSampleType);Set this field to 0 for compressed formats.