Enum alto::DistanceModel [] [src]

pub enum DistanceModel {
    None,
    Inverse,
    InverseClamped,
    Linear,
    LinearClamped,
    Exponent,
    ExponentClamped,
}

The shape of the volume curve for 3D positional audio.

Variants

No distance rolloff.

Gain is inversely proportional to distance.

Gain is inversely proportional to distance, but clamped at 1.0.

Gain rolls off linearly.

Gain rolls off linearly, but clamps at 1.0.

Exponential rolloff.

Exponential rolloff with clamping.

Trait Implementations

impl Copy for DistanceModel
[src]

impl Clone for DistanceModel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DistanceModel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for DistanceModel
[src]

impl Debug for DistanceModel
[src]

Formats the value using the given formatter.