Expand description
An implementation of Distance-Based Amplitude Panning as published by Trond Lossius, 2009.
Structs§
- Speaker
- A speaker within the DBAP space calculation.
- Speaker
Gains - An iterator yielding the gain for each given speaker, given their weights and distance from the source position.
Traits§
- Scalar
- Scalar values compatible with the DBAP algorithm, used to represent distances, coefficients, weights, etc.
Functions§
- a_
coefficient - A coefficient calculated from the rolloff
r
in decibels per doubling of distance. - blurred_
distance_ 2 - The same as a regular distance function but applies a subtle
blur
amount. - k_
coefficient k
is a coefficient depending on the position of the source and all speakers.- v_
speaker_ relative_ amplitude - The relative amplitude for a speaker where:
Type Aliases§
- Default
Scalar - The default scalar type used to represent the space.