---
title: "peakPower(forChannel:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiorecorder/peakpower(forchannel:)"
---

# peakPower(forChannel:)

Returns the peak power, in decibels full-scale (dBFS), for an audio channel.

## Declaration

```swift
func peakPower(forChannel channelNumber: Int) -> Float
```

## Parameters

- `channelNumber`: The number of the channel that you want the peak power value for.

## Return Value

Return Value The audio channel’s current peak power.

## Discussion

Discussion Before asking the player for its peak power value, you must call updateMeters() to generate the latest data. The returned value ranges from –160 dBFS, indicating minimum power, to 0 dBFS, indicating maximum power.

## See Also

### Managing audio-level metering

- [isMeteringEnabled](avfaudio/avaudiorecorder/ismeteringenabled.md)
- [updateMeters()](avfaudio/avaudiorecorder/updatemeters().md)
- [averagePower(forChannel:)](avfaudio/avaudiorecorder/averagepower(forchannel:).md)
