pub struct Renderer { /* private fields */ }Expand description
The audio side of a split engine: drains the ring in the output callback.
Send, alloc-free, lock-free — safe to hand to a cpal / AudioWorklet thread.
On underrun it writes silence (the ring depth chosen at Engine::split
trades latency against underrun safety).
Trait Implementations§
Source§impl AudioSource for Renderer
impl AudioSource for Renderer
Source§fn fill(&mut self, out: &mut [f32]) -> usize
fn fill(&mut self, out: &mut [f32]) -> usize
Fill
out with the next block of interleaved-stereo audio.Source§fn reset(&mut self)
fn reset(&mut self)
Rewind the source to its start (playback position / phase to zero).
Defaults to a no-op; a looping source overrides it so a transport can
restart it from the top.
AdaptiveMusic::reset
calls this on each layer.Auto Trait Implementations§
impl Freeze for Renderer
impl RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnsafeUnpin for Renderer
impl UnwindSafe for Renderer
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