pub struct ScratchAcousticDsp { /* private fields */ }Implementations§
Source§impl ScratchAcousticDsp
impl ScratchAcousticDsp
pub fn new( output_sample_rate: f64, config: JsValue, ) -> Result<ScratchAcousticDsp, JsValue>
pub fn set_window( &mut self, channels: JsValue, source_sample_rate: f64, window_start: u32, total_frames: u32, reset_position: Option<f64>, ) -> Result<(), JsValue>
pub fn clear_window(&mut self)
pub fn start(&mut self)
pub fn stop(&mut self)
pub fn set_effects(&mut self, acoustic_enabled: bool, surface_enabled: bool)
pub fn set_needle_lifted(&mut self, lifted: bool)
pub fn set_motion(&mut self, position: f64, rate: f64, impulse: f64)
pub fn set_transport( &mut self, hand_contact: bool, motor_rate: f64, hand_rate: f64, )
pub fn set_position(&mut self, position: f64, impulse: f64)
pub fn reset_position_export(&mut self, position: f64)
pub fn render(&mut self, frame_count: u32, output_channel_count: u32)
pub fn render_window_missing( &mut self, frame_count: u32, output_channel_count: u32, )
pub fn output_ptr(&self) -> *const f32
pub fn output_len(&self) -> usize
pub fn position(&self) -> f64
pub fn effective_rate(&self) -> f64
pub fn take_window_request(&mut self) -> f64
pub fn take_ended(&mut self) -> bool
Trait Implementations§
Source§impl From<ScratchAcousticDsp> for JsValue
impl From<ScratchAcousticDsp> for JsValue
Source§fn from(value: ScratchAcousticDsp) -> Self
fn from(value: ScratchAcousticDsp) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ScratchAcousticDsp
impl FromWasmAbi for ScratchAcousticDsp
Source§impl IntoWasmAbi for ScratchAcousticDsp
impl IntoWasmAbi for ScratchAcousticDsp
Source§impl LongRefFromWasmAbi for ScratchAcousticDsp
impl LongRefFromWasmAbi for ScratchAcousticDsp
Source§type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<ScratchAcousticDsp>
type Anchor = RcRef<ScratchAcousticDsp>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for ScratchAcousticDsp
impl RefFromWasmAbi for ScratchAcousticDsp
Source§type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<ScratchAcousticDsp>
type Anchor = RcRef<ScratchAcousticDsp>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ScratchAcousticDsp
impl RefMutFromWasmAbi for ScratchAcousticDsp
Source§type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
type Abi = WasmPtr<WasmRefCell<ScratchAcousticDsp>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<ScratchAcousticDsp>
type Anchor = RcRefMut<ScratchAcousticDsp>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for ScratchAcousticDsp
impl SupportsInstanceProperty for ScratchAcousticDsp
impl SupportsStaticProperty for ScratchAcousticDsp
Source§impl TryFromJsValue for ScratchAcousticDsp
impl TryFromJsValue for ScratchAcousticDsp
Source§impl VectorFromWasmAbi for ScratchAcousticDsp
impl VectorFromWasmAbi for ScratchAcousticDsp
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ScratchAcousticDsp]>
Source§impl VectorIntoWasmAbi for ScratchAcousticDsp
impl VectorIntoWasmAbi for ScratchAcousticDsp
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ScratchAcousticDsp]>) -> Self::Abi
Source§impl WasmDescribeVector for ScratchAcousticDsp
impl WasmDescribeVector for ScratchAcousticDsp
Auto Trait Implementations§
impl Freeze for ScratchAcousticDsp
impl RefUnwindSafe for ScratchAcousticDsp
impl Send for ScratchAcousticDsp
impl Sync for ScratchAcousticDsp
impl Unpin for ScratchAcousticDsp
impl UnsafeUnpin for ScratchAcousticDsp
impl UnwindSafe for ScratchAcousticDsp
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.