servo_media_audio

Trait AudioBackend

Source
pub trait AudioBackend {
    type Sink: AudioSink + 'static;

    // Required methods
    fn make_decoder() -> Box<dyn AudioDecoder>;
    fn make_sink() -> Result<Self::Sink, AudioSinkError>;
    fn make_streamreader(
        id: MediaStreamId,
        sample_rate: f32,
    ) -> Box<dyn AudioStreamReader + Send>;
}

Required Associated Types§

Source

type Sink: AudioSink + 'static

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§