brinicle_kernel 1.0.0

Vocabulary type for signal procesors in brinicle.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Clone, Copy)]
pub struct AudioFormat {
    pub input_channel_count: u32,
    pub output_channel_count: u32,
    pub sample_rate: f64,
}

#[derive(Clone, Copy)]
pub enum AllowedChannels {
    AnyChannelCountAllowed,
    ChannelCountAllowed(u32),
}

#[derive(Clone, Copy)]
pub struct AllowedFormat {
    pub input_channels: AllowedChannels,
    pub output_channels: AllowedChannels,
}