diff --git a/Outputs/Speaker/Implementation/LowpassSpeaker.hpp b/Outputs/Speaker/Implementation/LowpassSpeaker.hpp index 4b3d5d16e..c38df212a 100644 --- a/Outputs/Speaker/Implementation/LowpassSpeaker.hpp +++ b/Outputs/Speaker/Implementation/LowpassSpeaker.hpp @@ -300,8 +300,8 @@ template class PushLowpass: public LowpassBase scale_ = 65536; - int get_scale() { - return scale_; + int get_scale() const { + return scale_.load(std::memory_order::memory_order_relaxed); } const int16_t *buffer_ = nullptr;