fn blend<G: Frame, M: Stream<G>, O: Blend>(
        self,
        other: M,
        op: O,
    ) -> BlendStream<F, G, Self, M, O> {
        let mut first = self;
        let mut second = other;

        let _op = op;
        let (sr_a, sr_b) = (first.sample_rate(), second.sample_rate());
        if sr_a != sr_b {
            assert!(sr_a.is_none() || sr_b.is_none());
            match (sr_a, sr_b) {
                (None, None) => { /* Do nothing */ }
                (None, Some(sr)) => first.set_sample_rate(sr),
                (Some(sr), None) => second.set_sample_rate(sr),
                (Some(_), Some(_)) => unreachable!(),
            }
        }
        BlendStream(first, second, PhantomData)
    }
/// Blend this stream with another.
///
/// # Panics
/// If the sample rates are not compatible.
Blend this stream with another.
Blend this stream with another .
fn blend<G: Frame, M: Stream<G>, O: Blend>(
        self,
        other: M,
        op: O,
    ) -> BlendStream<F, G, Self, M, O> {
        let mut first = self;
        let mut second = other;
        let _op = op;
        let (sr_a, sr_b) = (first.sample_rate(), second.sample_rate());
        if sr_a != sr_b {
            assert!(sr_a.is_none() || sr_b.is_none());
            match (sr_a, sr_b) {
                (None, None) => { /* Do nothing */ }
                (None, Some(sr)) => first.set_sample_rate(sr),
                (Some(sr), None) => second.set_sample_rate(sr),
                (Some(_), Some(_)) => unreachable!(),
            }
        }
        BlendStream(first, second, PhantomData)
    }
fn blend < G : Frame , M : Stream < G > , O : Blend > ( self , other : M , op : O , ) -> BlendStream < F , G , Self , M , O > { let mut first = self ; let mut second = other ; let _op = op ; let ( sr_a , sr_b ) = ( first . sample_rate ( ) , second . sample_rate ( ) ) ; if sr_a != sr_b { assert ! ( sr_a is_none ( ) sr_b is_none ( ) ) ; match ( sr_a , sr_b ) { ( None , None ) => { /* Do nothing */ } ( None , Some ( sr ) ) => first . set_sample_rate ( sr ) , ( Some ( sr ) , None ) => second . set_sample_rate ( sr ) , ( Some ( _ ) , Some ( _ ) ) => unreachable ! ( ) , } } BlendStream ( first , second , PhantomData ) }
Blend this stream with another.
Blend this stream with another .
self
other
M
op
O
self
other
M
op
O
panics
If the sample rates are not compatible.
If the sample rates are not compatible .