wayle-audio 0.1.4

PulseAudio service with reactive state
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::types::{
    device::{Device, DeviceKey},
    stream::{StreamInfo, StreamKey},
};

#[derive(Debug, Clone)]
pub(crate) enum AudioEvent {
    DeviceAdded(Device),
    DeviceChanged(Device),
    DeviceRemoved(DeviceKey),
    StreamAdded(StreamInfo),
    StreamChanged(StreamInfo),
    StreamRemoved(StreamKey),
    DefaultInputChanged(Option<Device>),
    DefaultOutputChanged(Option<Device>),
}