Trait servo_media_audio::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§

Object Safety§

This trait is not object safe.

Implementors§