[][src]Crate dbap

An implementation of Distance-Based Amplitude Panning as published by Trond Lossius, 2009.

Structs

Speaker

A speaker within the DBAP space calculation.

SpeakerGains

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 Definitions

DefaultScalar

The default scalar type used to represent the space.