pub struct OscillatorOptions {
pub type_: OscillatorType,
pub frequency: f32,
pub detune: f32,
pub periodic_wave: Option<PeriodicWave>,
pub audio_node_options: AudioNodeOptions,
}
Expand description
Options for constructing an OscillatorNode
Fields§
§type_: OscillatorType
The shape of the periodic waveform
frequency: f32
The frequency of the fundamental frequency.
detune: f32
A 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”)
audio_node_options: AudioNodeOptions
channel 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 Freeze for OscillatorOptions
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