X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=audio_mixer.h;h=17f95280e28eba8a9a85756cb24c626a6f3f858c;hb=ffd68fbfb90242069af957f2a28908f0559f8348;hp=afebea471b7809cd7e51e11b583a413193159c2a;hpb=bc8e214a1e9f6d27055914901b660b6c9269d636;p=nageru diff --git a/audio_mixer.h b/audio_mixer.h index afebea4..17f9528 100644 --- a/audio_mixer.h +++ b/audio_mixer.h @@ -394,6 +394,19 @@ private: std::atomic metric_audio_peak_dbfs{0.0 / 0.0}; std::atomic metric_audio_final_makeup_gain_db{0.0}; std::atomic metric_audio_correlation{0.0}; + + // These are all gauges corresponding to the elements of BusLevel. + // In a sense, they'd probably do better as histograms, but that's an + // awful lot of time series when you have many buses. + struct BusMetrics { + std::vector> labels; + std::atomic current_level_dbfs[2]{{0.0/0.0},{0.0/0.0}}; + std::atomic peak_level_dbfs[2]{{0.0/0.0},{0.0/0.0}}; + std::atomic historic_peak_dbfs{0.0/0.0}; + std::atomic gain_staging_db{0.0/0.0}; + std::atomic compressor_attenuation_db{0.0/0.0}; + }; + std::unique_ptr bus_metrics; // One for each bus in . }; extern AudioMixer *global_audio_mixer;