---
title: "CMBufferQueueCreateWithHandlers(_:_:_:_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmbufferqueuecreatewithhandlers(_:_:_:_:)"
---

# CMBufferQueueCreateWithHandlers(_:_:_:_:)

Creates a buffer queue with handlers to inspect buffers.

## Declaration

```swift
func CMBufferQueueCreateWithHandlers(_ allocator: CFAllocator?, _ capacity: CMItemCount, _ handlers: OpaquePointer, _ queueOut: UnsafeMutablePointer<CMBufferQueue?>) -> OSStatus
```

## See Also

### Creating a Queue

- [CMBufferQueueCreate(allocator:capacity:callbacks:queueOut:)](coremedia/cmbufferqueuecreate(allocator:capacity:callbacks:queueout:).md)
- [CMBufferCallbacks](coremedia/cmbuffercallbacks.md)
