audionimbus 0.13.0

A safe wrapper around Steam Audio that provides spatial audio capabilities with realistic occlusion, reverb, and HRTF effects, accounting for physical attributes and scene geometry.
Documentation
/// An N-band equalizer, with band coefficients between 0.0 and 1.0.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Equalizer<const N: usize>(pub [f32; N]);

impl<const N: usize> Default for Equalizer<N> {
    fn default() -> Self {
        Self([0.0; N])
    }
}

impl<const N: usize> std::ops::Deref for Equalizer<N> {
    type Target = [f32; N];

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}

impl<const N: usize> std::ops::DerefMut for Equalizer<N> {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}