pub fn mix(&self, other: &EffectStream) -> EffectStream {
        EffectStream {
            samples: Arc::new(
                mix(
                    self.samples.iter().cloned().map(|s| s*self.volume),
                    other.samples.iter().cloned().map(|s| s*other.volume),
                ).collect()
            ),
            volume: 1.0,
        }
    }
/// Mix two `EffectStream`s together into a new EffectStream
Mix two `EffectStream`s together into a new EffectStream
Mix two ` EffectStream ` s together into a new EffectStream
pub fn mix(&self, other: &EffectStream) -> EffectStream {
        EffectStream {
            samples: Arc::new(
                mix(
                    self.samples.iter().cloned().map(|s| s*self.volume),
                    other.samples.iter().cloned().map(|s| s*other.volume),
                ).collect()
            ),
            volume: 1.0,
        }
    }
pub fn mix ( & self , other : & EffectStream ) -> EffectStream { EffectStream { samples : Arc :: new ( mix ( self . samples . iter ( ) . cloned ( ) . map ( | s | s * self . volume ) , other . samples . iter ( ) . cloned ( ) . map ( | s | s * other . volume ) , ) . collect ( ) ) , volume : 1.0 , } }
Mix two `EffectStream`s together into a new EffectStream
Mix two ` EffectStream ` s together into a new EffectStream
&self
other
&EffectStream
&self
other
&EffectStream