---
title: mBytesPerPacket
framework: coreaudiotypes
role: symbol
role_heading: Instance Property
path: coreaudiotypes/audiostreambasicdescription/mbytesperpacket
---

# mBytesPerPacket

The number of bytes in a packet of audio data.

## Declaration

```swift
var mBytesPerPacket: UInt32
```

## Discussion

Discussion To indicate variable packet size, set this field to 0. For a format that uses variable packet size, specify the size of each packet using an AudioStreamPacketDescription structure.

## 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)
- [mBytesPerFrame](coreaudiotypes/audiostreambasicdescription/mbytesperframe.md)
- [mChannelsPerFrame](coreaudiotypes/audiostreambasicdescription/mchannelsperframe.md)
- [mFramesPerPacket](coreaudiotypes/audiostreambasicdescription/mframesperpacket.md)
- [mReserved](coreaudiotypes/audiostreambasicdescription/mreserved.md)
