/// Selectively replaces an existing stream of the same type with the one
/// provided. The `AudioInfo` is left intact if that stream type does not
/// exist.
Selectively replaces an existing stream of the same type with the one
provided. The `AudioInfo` is left intact if that stream type does not
exist.
Selectively replaces an existing stream of the same type with the one provided . The ` AudioInfo ` is left intact if that stream type does not exist .
pub fn replace_stream(&mut self, stream: AudioStream) {
        if let Some(s) = self.streams.iter_mut().find(|s| s.stream_type == stream.stream_type) {
            *s = stream;
        }
    }
pub fn replace_stream ( & mut self , stream : AudioStream ) { if let Some ( s ) = self . streams . iter_mut ( ) . find ( | s | s . stream_type == stream . stream_type ) { * s = stream ; } }
Selectively replaces an existing stream of the same type with the one
provided.
Selectively replaces an existing stream of the same type with the one provided .
&mut self
stream
AudioStream