lasprs 0.6.7

Library for Acoustic Signal Processing (Rust edition, with optional Python bindings via pyo3)
Documentation
use super::source::*;
use crate::config::*;

/// Messages that can be send to a given signal generator [Siggen], to change its behaviour

#[cfg_attr(feature = "python-bindings", pyclass)]
#[derive(Clone, Debug)]
pub enum SiggenCommand {
    /// Change the source to a sine wave with given frequency.
    ChangeSource{
        /// New signal source to apply for signal generator
        src: Source,
    },

    /// Reset the signal generator state
    ResetSiggen {
        /// Sampling frequency \[Hz\]
        fs: Flt,
    },

    /// Set all gains to value g
    SetAllGains {
        /// Linear gain level to apply to all channels
        g: Flt,
    },

    /// Change the mute state for a certain channel
    SetMuteChannel {
        /// channel index
        ch: usize,
        /// mute state
        mute: bool,
    },
    /// Change the mute state for all channels
    SetMuteAllChannels {
        /// mute state
        mute: bool,
    },
}