<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioDriverKit",
  "identifier" : "/documentation/AudioDriverKit/IOUserAudioStream/GetAvailableStreamFormats",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AudioDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserAudioStream@F@GetAvailableStreamFormats#*$@N@AudioDriverKit@S@IOUserAudioStreamBasicDescription#l#"
  },
  "title" : "GetAvailableStreamFormats"
}
-->

# GetAvailableStreamFormats

Returns the available stream formats as an array of audio stream basic descriptions.

```
size_t GetAvailableStreamFormats(IOUserAudioStreamBasicDescription *out_formats, size_t in_num_formats);
```

## Parameters

`out_formats`

A pointer to a buffer of type `IOUserAudioStreamBasicDescription`, with a size of `in_num_formats`. On return, this buffer contains the available formats.

`in_num_formats`

The size of the `out_formats` buffer.

## Return Value

The number of descriptions populated in the `out_formats` buffer.

## Discussion

This method synchronizes by using the work queue created by the object.

---

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)