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
None
No distance rolloff.
Inverse
Gain is inversely proportional to distance.
InverseClamped
Gain is inversely proportional to distance, but clamped at 1.0.
Linear
Gain rolls off linearly.
LinearClamped
Gain rolls off linearly, but clamps at 1.0.
Exponent
Exponential rolloff.
ExponentClamped
Exponential rolloff with clamping.
Trait Implementations
impl Copy for DistanceModel
[src]
impl Clone for DistanceModel
[src]
fn clone(&self) -> DistanceModel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for DistanceModel
[src]
fn eq(&self, __arg_0: &DistanceModel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.