averagePower(forChannel:)
Returns the average power, in decibels full-scale (dBFS), for an audio channel.
Declaration
func averagePower(forChannel channelNumber: Int) -> FloatParameters
- channelNumber:
The number of the channel that you want the average power value for.
Return Value
The audio channel’s current average power.
Discussion
Before asking the player for its average 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.