pub fn watch_with_volume(
    logger: &Logger,
    device_id: Option<&OsStr>
) -> Result<SoundCoreAndVolumeEventIterator, Box<dyn Error>>
Expand description

Gets the sequence of events for a device.

If device_id is None, the system default output device will be used.

Examples

for event in watch_with_volume(logger.clone(), None) {
    println!("{:?}", event);
}