X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=a94cf922fce2b0600521caef8ff87b01ff1939cb;hb=4a02aa24a41bd7b1a5fad276914af1c7c3d8ee7f;hp=498a2d13afd1a8e02340a455949daeb6c7cb8f9d;hpb=0323944a99ea3c0e175f0f3d004fa42fecd02ece;p=nageru diff --git a/mixer.h b/mixer.h index 498a2d1..a94cf92 100644 --- a/mixer.h +++ b/mixer.h @@ -7,7 +7,6 @@ #undef Success #include #include -#include #include #include "bmusb/bmusb.h" @@ -19,6 +18,7 @@ #include "resampler.h" #include "timebase.h" #include "httpd.h" +#include "ebu_r128_proc.h" #define NUM_CARDS 2 @@ -164,7 +164,10 @@ private: bool should_quit = false; audio_level_callback_t audio_level_callback = nullptr; - ebur128_state *r128_state = nullptr; + Ebu_r128_proc r128; + + // TODO: Implement oversampled peak detection. + float peak = 0.0f; }; extern Mixer *global_mixer;