pub struct NullHw;Expand description
Trait Implementations§
Source§impl Hw for NullHw
impl Hw for NullHw
Source§fn configure(
&mut self,
_voice: u8,
_sample: &Sample,
_looped: bool,
_pitch_q12: u16,
)
fn configure( &mut self, _voice: u8, _sample: &Sample, _looped: bool, _pitch_q12: u16, )
Point
voice at sample without starting it. looped selects the
hardware-loop setup; a one-shot also gets its repeat address written so
it parks on silence. pitch_q12 is a multiplier of the cooked rate
(4096 plays it as recorded).Source§fn set_volume(&mut self, _voice: u8, _left: i16, _right: i16)
fn set_volume(&mut self, _voice: u8, _left: i16, _right: i16)
Write a voice’s left and right volume (signed SPU levels, already
scaled by the master volume).
impl Copy for NullHw
Auto Trait Implementations§
impl Freeze for NullHw
impl RefUnwindSafe for NullHw
impl Send for NullHw
impl Sync for NullHw
impl Unpin for NullHw
impl UnsafeUnpin for NullHw
impl UnwindSafe for NullHw
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)