Skip to main content

IntoAudioSource

Trait IntoAudioSource 

Source
pub trait IntoAudioSource {
    type Format: SampleFormat;

    // Required method
    fn into_audio_source(
        &mut self,
    ) -> Result<Box<dyn AudioSource<Format = Self::Format>>>;
}

Required Associated Types§

Required Methods§

Source

fn into_audio_source( &mut self, ) -> Result<Box<dyn AudioSource<Format = Self::Format>>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoAudioSource for Receiver<f32>

Source§

type Format = f32

Source§

fn into_audio_source( &mut self, ) -> Result<Box<dyn AudioSource<Format = Self::Format>>>

Implementors§