wiremix 0.11.0

A TUI mixer for PipeWire
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Media class classification methods.

pub fn is_sink(s: &str) -> bool {
    matches!(s, "Audio/Sink" | "Audio/Duplex")
}

pub fn is_source(s: &str) -> bool {
    matches!(s, "Audio/Source" | "Audio/Duplex" | "Audio/Source/Virtual")
}

pub fn is_sink_input(s: &str) -> bool {
    s == "Stream/Output/Audio"
}

pub fn is_source_output(s: &str) -> bool {
    s == "Stream/Input/Audio"
}