Struct wasm4_sx::ToneBuilder 
source · pub struct ToneBuilder { /* private fields */ }Expand description
Tone builder.
Implementations§
source§impl ToneBuilder
 
impl ToneBuilder
sourcepub const fn with_frequency(self, frequency: FrequencySlide) -> Self
 
pub const fn with_frequency(self, frequency: FrequencySlide) -> Self
Set the tone frequency.
sourcepub const fn with_duration(self, duration: Adsr) -> Self
 
pub const fn with_duration(self, duration: Adsr) -> Self
Set the tone duration.
sourcepub const fn with_volume(self, volume: Volume) -> Self
 
pub const fn with_volume(self, volume: Volume) -> Self
Set the tone volume.
sourcepub const fn with_flags(self, flags: ToneFlags) -> Self
 
pub const fn with_flags(self, flags: ToneFlags) -> Self
Set the tone flags.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ToneBuilder
impl Send for ToneBuilder
impl Sync for ToneBuilder
impl Unpin for ToneBuilder
impl UnwindSafe for ToneBuilder
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