Skip to main content

Playback

Trait Playback 

Source
pub trait Playback {
    type Error;
    type Timing;

    // Required method
    fn render(
        &mut self,
        render: impl FnOnce(&mut Block, Self::Timing),
    ) -> Result<Submission, Self::Error>;
}
Expand description

Sink for a stereo graph master. Service it on the backend’s owning thread.

Required Associated Types§

Source

type Error

Backend error.

Source

type Timing

Evidence available before selecting samples. FM-1 supplies its measured DAC interval.

Required Methods§

Source

fn render( &mut self, render: impl FnOnce(&mut Block, Self::Timing), ) -> Result<Submission, Self::Error>

Call the renderer at most once, with a cleared block. On submission failure after rendering, the caller’s graph may already have advanced.

§Errors

Returns transport errors from the backend.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§