1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Ensures that get_average_output_peak() returns something sensible even before a set_relative_volumes.

This commit is contained in:
Thomas Harte 2020-11-21 22:52:57 -05:00
parent 3cc89cb4d2
commit 8a805b6ba1

View File

@ -171,7 +171,7 @@ template <typename... T> class CompoundSource:
CompoundSourceHolder<T...> source_holder_;
std::vector<double> volumes_;
int16_t volume_range_ = 0;
std::atomic<double> average_output_peak_;
std::atomic<double> average_output_peak_{1.0};
};
}