<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/AudioQueueBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@S@AudioQueueBuffer"
  },
  "title" : "AudioQueueBuffer"
}
-->

# AudioQueueBuffer

Defines an audio queue buffer.

```
struct AudioQueueBuffer
```

## Overview

Each audio queue has an associated set of audio queue buffers.  To allocate a buffer, call the [`AudioQueueAllocateBuffer(_:_:_:)`](/documentation/AudioToolbox/AudioQueueAllocateBuffer(_:_:_:)) function. To dispose of a buffer, call the [`AudioQueueFreeBuffer(_:_:)`](/documentation/AudioToolbox/AudioQueueFreeBuffer(_:_:)) function.

If using a VBR compressed audio data format, you may want to instead use the `AudioQueueAllocateBufferWithPacketDescriptions` function. This function allocates a buffer with additional space for packet descriptions. The `mPacketDescriptionCapacity`, `mPacketDescriptions`, and `mPacketDescriptionCount` fields may only be used with buffers allocated with `AudioQueueAllocateBufferWithPacketDescriptions`.

---

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)