Trait audio_streams::StreamControl
source · pub trait StreamControl: Send + Sync {
// Provided methods
fn set_volume(&mut self, _scaler: f64) { ... }
fn set_mute(&mut self, _mute: bool) { ... }
}
Expand description
StreamControl
provides a way to set the volume and mute states of a stream. StreamControl
is separate from the stream so it can be owned by a different thread if needed.