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§
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>
Object Safety§
This trait is not object safe.