mirror of https://github.com/TomHarte/CLK.git
Mildly reduce heft of scale read.
This commit is contained in:
parent
06fd91f002
commit
140228a936
|
@ -300,8 +300,8 @@ template <bool is_stereo> class PushLowpass: public LowpassBase<PushLowpass<is_s
|
||||||
using BaseT::process;
|
using BaseT::process;
|
||||||
|
|
||||||
std::atomic<int> scale_ = 65536;
|
std::atomic<int> scale_ = 65536;
|
||||||
int get_scale() {
|
int get_scale() const {
|
||||||
return scale_;
|
return scale_.load(std::memory_order::memory_order_relaxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
const int16_t *buffer_ = nullptr;
|
const int16_t *buffer_ = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue