/// Generate an audio sink for the user to fill.
Generate an audio sink for the user to fill.
Generate an audio sink for the user to fill .
pub(crate) fn play<F>(&mut self) -> SpeakersSink<'_, F>
    where
        F: Frame<Chan = Ch32>,
    {
        // Change number of channels, if different than last call.
        self.set_channels::<F>()
            .expect("Speaker::play() called with invalid configuration");
        // Convert the resampler to the target speaker configuration.
        let resampler = Resampler::<F>::new(
            Surround32::from_channels(&self.resampler.0[..]).convert(),
            self.resampler.1,
        );
        // Create a sink that borrows this speaker's buffer mutably.
        SpeakersSink(self, resampler, PhantomData)
    }
pub ( crate ) fn play < F > ( & mut self ) -> SpeakersSink < ' _ , F > where F : Frame < Chan = Ch32 > , { // Change number of channels, if different than last call. self . set_channels :: < F > ( ) . expect ( " " ) ; // Convert the resampler to the target speaker configuration. let resampler = Resampler :: < F > :: new ( Surround32 :: from_channels ( & self . resampler . 0 [ .. ] ) . convert ( ) , self . resampler . 1 , ) ; // Create a sink that borrows this speaker's buffer mutably. SpeakersSink ( self , resampler , PhantomData ) }
Generate an audio sink for the user to fill.
Generate an audio sink for the user to fill .
&mut self