// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 Andrea De Murtas

// Copied from Gala (https://github.com/andreademurtas/gala), src/Meters.h
// @ 1.1.0. Deviations: Gjalla has one gain reduction to show, the gate's.

#pragma once

#include <atomic>

namespace gjalla
{

// Block maxima written by the audio thread, read by the GUI timer which
// applies its own ballistics. Gain reductions are positive dB amounts.
struct Meters
{
    std::atomic<float> inPeak { 0.0f }, outPeak { 0.0f };
    std::atomic<float> gateGR { 0.0f };
};

} // namespace gjalla
