Contents

convertToDecibels(fromScalar:)

Convert a volume scalar value to the equivalent dB value.

Declaration

func convertToDecibels(fromScalar scalar: Float) throws -> Float

Parameters

  • scalar:

    A Float representing the volume scalar value to convert.

Return Value

A Float representing the equivalent dB value.