---
title: "AudioUnitGetParameter(_:_:_:_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audiounitgetparameter(_:_:_:_:_:)"
---

# AudioUnitGetParameter(_:_:_:_:_:)

Gets the value of an audio unit parameter.

## Declaration

```swift
func AudioUnitGetParameter(_ inUnit: AudioUnit, _ inID: AudioUnitParameterID, _ inScope: AudioUnitScope, _ inElement: AudioUnitElement, _ outValue: UnsafeMutablePointer<AudioUnitParameterValue>) -> OSStatus
```

## Parameters

- `inUnit`: The audio unit that you want to get a parameter value from.
- `inID`: The identifier for the parameter.
- `inScope`: The audio unit scope for the parameter.
- `inElement`: The audio unit element for the parameter.
- `outValue`: On success, contains the current value for the specified audio unit parameter.

## Mentioned in

Migrating Your Audio Unit Host to the AUv3 API

## Return Value

Return Value A result code.

## See Also

### Getting and Setting Parameters

- [AudioUnitScheduleParameters(_:_:_:)](audiotoolbox/audiounitscheduleparameters(_:_:_:).md)
- [AudioUnitSetParameter(_:_:_:_:_:_:)](audiotoolbox/audiounitsetparameter(_:_:_:_:_:_:).md)
