Struct web_audio_api::node::OscillatorOptions
source · pub struct OscillatorOptions {
pub type_: OscillatorType,
pub frequency: f32,
pub detune: f32,
pub periodic_wave: Option<PeriodicWave>,
pub channel_config: ChannelConfigOptions,
}Expand description
Options for constructing an OscillatorNode
Fields§
§type_: OscillatorTypeThe shape of the periodic waveform
frequency: f32The frequency of the fundamental frequency.
detune: f32A detuning value (in cents) which will offset the frequency by the given amount.
periodic_wave: Option<PeriodicWave>Optional custom waveform, if specified (set type to “custom”)
channel_config: ChannelConfigOptionschannel config options
Trait Implementations§
source§impl Clone for OscillatorOptions
impl Clone for OscillatorOptions
source§fn clone(&self) -> OscillatorOptions
fn clone(&self) -> OscillatorOptions
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 OscillatorOptions
impl Debug for OscillatorOptions
Auto Trait Implementations§
impl RefUnwindSafe for OscillatorOptions
impl Send for OscillatorOptions
impl Sync for OscillatorOptions
impl Unpin for OscillatorOptions
impl UnwindSafe for OscillatorOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more