fn volume_on_stream(
    stream_type: AudioStreamType,
    stored_streams: &HashMap<AudioStreamType, StreamVolumeControl>,
) -> Option<f32> {
    match stored_streams.get(&stream_type) {
        Some(stream) => Some(stream.stored_stream.user_volume_level),
        None => {
            fx_log_err!("Could not find {:?} stream", stream_type);
            return None;
        }
    }
}
// Retrieve the user volume on the specified stream, given the currently stored streams.
Retrieve the user volume on the specified stream, given the currently stored streams.
Retrieve the user volume on the specified stream given the currently stored streams .
fn volume_on_stream(
    stream_type: AudioStreamType,
    stored_streams: &HashMap<AudioStreamType, StreamVolumeControl>,
) -> Option<f32> {
    match stored_streams.get(&stream_type) {
        Some(stream) => Some(stream.stored_stream.user_volume_level),
        None => {
            fx_log_err!("Could not find {:?} stream", stream_type);
            return None;
        }
    }
}
fn volume_on_stream ( stream_type : AudioStreamType , stored_streams : & HashMap < AudioStreamType , StreamVolumeControl > , ) -> Option < f32 > { match stored_streams . get ( & stream_type ) { Some ( stream ) => Some ( stream . stored_stream . user_volume_level ) , None => { fx_log_err ! ( " " stream_type ) ; return None ; } } }
Retrieve the user volume on the specified stream, given the currently stored streams.
Retrieve the user volume on the specified stream given the currently stored streams .
stream_type
AudioStreamType
stored_streams
&HashMap<AudioStreamType, StreamVolumeControl>
stream_type
AudioStreamType
stored_streams
&HashMap<AudioStreamType, StreamVolumeControl>