Skip to main content

rill_router/mixer/
send.rs

1//! Aux sends for effects
2
3/// Send type
4#[derive(Debug, Clone, Copy, PartialEq)]
5pub enum SendType {
6    /// Pre-fader (signal taken before channel volume)
7    PreFader,
8    /// Post-fader (signal taken after channel volume)
9    PostFader,
10}
11
12/// Configuration for an aux send
13#[derive(Debug, Clone)]
14pub struct SendConfig {
15    /// Target bus index
16    pub bus_index: usize,
17    /// Send level (0.0 - 1.0)
18    pub level: f32,
19    /// Send type
20    pub send_type: SendType,
21}
22
23impl Default for SendConfig {
24    fn default() -> Self {
25        Self {
26            bus_index: 0,
27            level: 0.0,
28            send_type: SendType::PostFader,
29        }
30    }
31}