mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-02 16:38:51 +00:00
Full scale is 65536.
This commit is contained in:
parent
e6fe36f45c
commit
ff6ddaed2e
@ -293,7 +293,7 @@ template <bool is_stereo> class PushLowpass: public LowpassBase<PushLowpass<is_s
|
||||
friend BaseT;
|
||||
using BaseT::process;
|
||||
|
||||
std::atomic<uint16_t> scale_ = 32767;
|
||||
std::atomic<int> scale_ = 65536;
|
||||
int get_scale() {
|
||||
return scale_;
|
||||
}
|
||||
@ -312,7 +312,7 @@ template <bool is_stereo> class PushLowpass: public LowpassBase<PushLowpass<is_s
|
||||
|
||||
public:
|
||||
void set_output_volume(float volume) final {
|
||||
scale_.store(uint16_t(std::clamp(volume * 65535.0f, 0.0f, 65535.0f)));
|
||||
scale_.store(int(std::clamp(volume * 65536.0f, 0.0f, 65536.0f)));
|
||||
}
|
||||
|
||||
bool get_is_stereo() final {
|
||||
|
Loading…
x
Reference in New Issue
Block a user