---
title: "components(matching:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiounitcomponentmanager/components(matching:)-9qt94"
---

# components(matching:)

Gets an array of audio component objects that match the description.

## Declaration

```swift
func components(matching desc: AudioComponentDescription) -> [AVAudioUnitComponent]
```

## Return Value

Return Value An array of AVAudioComponent objects that match the description.

## Discussion

Discussion desc: The AudioComponentDescription structure to match. The method uses the type, subtype and manufacturer fields to search for matching audio units. A value of 0 for any of these fields is a wildcard and returns the first match the method finds.

## See Also

### Getting matching audio components

- [components(matching:)](avfaudio/avaudiounitcomponentmanager/components(matching:)-96l2c.md)
- [components(passingTest:)](avfaudio/avaudiounitcomponentmanager/components(passingtest:).md)
