<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudioTypes",
  "identifier" : "/documentation/CoreAudioTypes/AudioStreamPacketDescription",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Audio Types"
    ],
    "preciseIdentifier" : "c:@S@AudioStreamPacketDescription"
  },
  "title" : "AudioStreamPacketDescription"
}
-->

# AudioStreamPacketDescription

A value that describes a packet in a buffer of audio data.

```
struct AudioStreamPacketDescription
```

## Overview

For data formats where the packet size isn’t constant, such as variable bit rate data and data where the channels have unequal sizes, use this structure to supplement the information in the [`AudioStreamBasicDescription`](/documentation/CoreAudioTypes/AudioStreamBasicDescription) structure.

## Topics

### Inspecting an audio stream packet description

[`mDataByteSize`](/documentation/CoreAudioTypes/AudioStreamPacketDescription/mDataByteSize)

The number of bytes in the packet.

[`mStartOffset`](/documentation/CoreAudioTypes/AudioStreamPacketDescription/mStartOffset)

The number of bytes from the start of the buffer to the beginning of the packet.

[`mVariableFramesInPacket`](/documentation/CoreAudioTypes/AudioStreamPacketDescription/mVariableFramesInPacket)

The number of sample frames of data in the packet.

### Creating an audio stream packet descripiton

[`init()`](/documentation/CoreAudioTypes/AudioStreamPacketDescription/init())

Creates an audio stream basic description.

[`init(mStartOffset:mVariableFramesInPacket:mDataByteSize:)`](/documentation/CoreAudioTypes/AudioStreamPacketDescription/init(mStartOffset:mVariableFramesInPacket:mDataByteSize:))

Creates an audio stream basic description with the start offset, and the number of sample frames and bytes in the packet that you specify.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)