---
title: "AudioQueueStart(_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioqueuestart(_:_:)"
---

# AudioQueueStart(_:_:)

Begins playing or recording audio.

## Declaration

```swift
func AudioQueueStart(_ inAQ: AudioQueueRef, _ inStartTime: UnsafePointer<AudioTimeStamp>?) -> OSStatus
```

## Parameters

- `inAQ`: The audio queue to start.
- `inStartTime`: The time at which the audio queue should start. To specify a start time relative to the timeline of the associated audio device, use the mSampleTime field of the AudioTimeStamp structure. Use NULL to indicate that the audio queue should start as soon as possible.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion If the associated audio device is not already running, this function starts it.

## See Also

### Controlling Audio Queues

- [AudioQueuePrime(_:_:_:)](audiotoolbox/audioqueueprime(_:_:_:).md)
- [AudioQueueFlush(_:)](audiotoolbox/audioqueueflush(_:).md)
- [AudioQueueStop(_:_:)](audiotoolbox/audioqueuestop(_:_:).md)
- [AudioQueuePause(_:)](audiotoolbox/audioqueuepause(_:).md)
- [AudioQueueReset(_:)](audiotoolbox/audioqueuereset(_:).md)
