Enum web_audio_api::node::OscillatorType
source · pub enum OscillatorType {
Sine,
Square,
Sawtooth,
Triangle,
Custom,
}
Expand description
Type of the waveform rendered by an OscillatorNode
Variants§
Sine
Sine wave
Square
Square wave
Sawtooth
Sawtooth wave
Triangle
Triangle wave
Custom
type used when periodic_wave is specified
Trait Implementations§
source§impl Clone for OscillatorType
impl Clone for OscillatorType
source§fn clone(&self) -> OscillatorType
fn clone(&self) -> OscillatorType
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 OscillatorType
impl Debug for OscillatorType
source§impl Default for OscillatorType
impl Default for OscillatorType
source§impl From<u32> for OscillatorType
impl From<u32> for OscillatorType
source§impl PartialEq<OscillatorType> for OscillatorType
impl PartialEq<OscillatorType> for OscillatorType
source§fn eq(&self, other: &OscillatorType) -> bool
fn eq(&self, other: &OscillatorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.