pub struct Renderer<'a, const N: usize> { /* private fields */ }Expand description
The only consumer of a playback queue, owned by the hardware callback. All render methods return frames consumed and fill the remainder with silence.
Implementations§
Source§impl<'a, const N: usize> Renderer<'a, N>
impl<'a, const N: usize> Renderer<'a, N>
pub fn failure_reporter(&self) -> FailureReporter<'a>
pub fn render_f32(&mut self, output: &mut [f32]) -> usize
pub fn render_i16(&mut self, output: &mut [i16]) -> usize
pub fn render_i32(&mut self, output: &mut [i32]) -> usize
pub fn render_u8(&mut self, output: &mut [u8]) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for Renderer<'a, N>
impl<'a, const N: usize> !RefUnwindSafe for Renderer<'a, N>
impl<'a, const N: usize> Send for Renderer<'a, N>
impl<'a, const N: usize> Sync for Renderer<'a, N>
impl<'a, const N: usize> Unpin for Renderer<'a, N>
impl<'a, const N: usize> UnsafeUnpin for Renderer<'a, N>
impl<'a, const N: usize> !UnwindSafe for Renderer<'a, N>
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