]> git.sesse.net Git - nageru/blobdiff - mixer.h
Fix a memory leak in the Lua code.
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index 64a74e2f13d855d0030a19645cdadf95956b9558..89a80dd52fabaccd8e81f1743c491f41b4d329ff 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -22,6 +22,7 @@
 #include <vector>
 
 #include "bmusb/bmusb.h"
+#include "alsa_output.h"
 #include "ebu_r128_proc.h"
 #include "h264encode.h"
 #include "httpd.h"
@@ -257,11 +258,13 @@ private:
        static constexpr float ref_level_dbfs = -14.0f;
 
        StereoCompressor limiter;
-       std::atomic<float> limiter_threshold_dbfs{ref_level_dbfs + 0.0f};   // 0 dB.
+       std::atomic<float> limiter_threshold_dbfs{ref_level_dbfs + 4.0f};   // 4 dB.
        std::atomic<bool> limiter_enabled{true};
        StereoCompressor compressor;
        std::atomic<float> compressor_threshold_dbfs{ref_level_dbfs - 12.0f};  // -12 dB.
        std::atomic<bool> compressor_enabled{true};
+
+       std::unique_ptr<ALSAOutput> alsa;
 };
 
 extern Mixer *global_mixer;