---
title: mBytesPerFrame
framework: coreaudiotypes
role: symbol
role_heading: Instance Property
path: coreaudiotypes/audiostreambasicdescription/mbytesperframe
---

# mBytesPerFrame

The number of bytes from the start of one frame to the start of the next frame in an audio buffer.

## Declaration

```swift
var mBytesPerFrame: UInt32
```

## Discussion

Discussion 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.

## See Also

### Inspecting a description

- [mFormatID](coreaudiotypes/audiostreambasicdescription/mformatid.md)
- [mFormatFlags](coreaudiotypes/audiostreambasicdescription/mformatflags.md)
- [mSampleRate](coreaudiotypes/audiostreambasicdescription/msamplerate.md)
- [mBitsPerChannel](coreaudiotypes/audiostreambasicdescription/mbitsperchannel.md)
- [mChannelsPerFrame](coreaudiotypes/audiostreambasicdescription/mchannelsperframe.md)
- [mBytesPerPacket](coreaudiotypes/audiostreambasicdescription/mbytesperpacket.md)
- [mFramesPerPacket](coreaudiotypes/audiostreambasicdescription/mframesperpacket.md)
- [mReserved](coreaudiotypes/audiostreambasicdescription/mreserved.md)
