1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Copy, Clone, Debug)]
pub enum ChannelState {
    Muted,
    Unmuted,
}

impl ChannelState {
    pub fn id(&self) -> u8 {
        match self {
            ChannelState::Muted => 0x01,
            ChannelState::Unmuted => 0x00,
        }
    }
}