aboutsummaryrefslogtreecommitdiff
path: root/src/voice/dca.rs
blob: 4f3d7e76148780a41af35c79537cec391e638d62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Deserialize)]
pub struct DcaMetadata {
    opus: OpusInfo,
}

#[derive(Debug, Deserialize)]
struct OpusInfo {
    /// Number of channels
    channels: u8,
}

impl DcaMetadata {
    pub fn is_stereo(&self) -> bool { self.opus.channels == 2 }
}