Enum web_audio_api::node::DistanceModelType
source · pub enum DistanceModelType {
Linear,
Inverse,
Exponential,
}
Expand description
Algorithm to reduce the volume of an audio source as it moves away from the listener
Variants§
Trait Implementations§
source§impl Clone for DistanceModelType
impl Clone for DistanceModelType
source§fn clone(&self) -> DistanceModelType
fn clone(&self) -> DistanceModelType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DistanceModelType
impl Debug for DistanceModelType
source§impl Default for DistanceModelType
impl Default for DistanceModelType
source§impl From<u8> for DistanceModelType
impl From<u8> for DistanceModelType
source§impl PartialEq<DistanceModelType> for DistanceModelType
impl PartialEq<DistanceModelType> for DistanceModelType
source§fn eq(&self, other: &DistanceModelType) -> bool
fn eq(&self, other: &DistanceModelType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.