[][src]Function dbap::v_speaker_relative_amplitude

pub fn v_speaker_relative_amplitude<S>(speaker: &Speaker<S>, k: S, a: S) -> S where
    S: Scalar

The relative amplitude for a speaker where:

  • k is a coefficient depending on the position of the source and all speakers
  • a is a coefficient calculated from the rolloff in decibels per doubling distance.

The speaker's distance field must be greater than zero or the result will be NaN.