Contents

peakPower(forChannel:)

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

Declaration

func peakPower(forChannel channelNumber: Int) -> Float

Parameters

  • channelNumber:

    The number of the channel that you want the peak power value for.

Return Value

The audio channel’s current peak power.

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