X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=audio_mixer.h;h=42aa92a70b30ac9e0ad1d5901abd6b003b138472;hb=3a6cd1156318a52fd8575f9fa39d7b37f3f3b16f;hp=c332671e0bebd6f385d66b8ddc40fd426fd765ad;hpb=1062c5403b57859c219558e736564a3d0bbecfd5;p=nageru diff --git a/audio_mixer.h b/audio_mixer.h index c332671..42aa92a 100644 --- a/audio_mixer.h +++ b/audio_mixer.h @@ -108,6 +108,11 @@ public: locut_cutoff_hz = cutoff_hz; } + float get_locut_cutoff() const + { + return locut_cutoff_hz; + } + void set_locut_enabled(unsigned bus, bool enabled) { locut_enabled[bus] = enabled; @@ -124,6 +129,12 @@ public: eq_level_db[bus_index][band] = db_gain; } + float get_eq(unsigned bus_index, EQBand band) const + { + assert(band >= 0 && band < NUM_EQ_BANDS); + return eq_level_db[bus_index][band]; + } + float get_limiter_threshold_dbfs() const { return limiter_threshold_dbfs; @@ -268,7 +279,7 @@ private: AudioDevice alsa_inputs[MAX_ALSA_CARDS]; // Under audio_mutex. std::vector available_alsa_cards; - std::atomic locut_cutoff_hz; + std::atomic locut_cutoff_hz{120}; StereoFilter locut[MAX_BUSES]; // Default cutoff 120 Hz, 24 dB/oct. std::atomic locut_enabled[MAX_BUSES]; StereoFilter eq[MAX_BUSES][NUM_EQ_BANDS]; // The one for EQBand::MID isn't actually used (see comments in apply_eq()).