diff options
author | John Novak <jnovak@skedulo.com> | 2022-09-06 12:01:41 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-09-08 18:55:05 +0300 |
commit | 4c68282b497cf6c0c7089bfbf08b18e532a3d681 (patch) | |
tree | e819de1bc40b786c0577abb0919b57bc03797c3e /include | |
parent | 8b60d5465a5e2dafecffaed30bb8c8507ddf94b9 (diff) |
Make resampling checks more robust
Diffstat (limited to 'include')
-rw-r--r-- | include/mixer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mixer.h b/include/mixer.h index ac8c7993d..df1810854 100644 --- a/include/mixer.h +++ b/include/mixer.h @@ -303,8 +303,8 @@ private: bool last_samples_were_stereo = false; bool last_samples_were_silence = true; - ResampleMethod resample_method = {}; + bool do_resample = false; struct { float pos = 0.0f; @@ -322,8 +322,6 @@ private: SpeexResamplerState *state = nullptr; } speex_resampler = {}; - bool do_resample = false; - struct { struct { std::array<Iir::Butterworth::HighPass<max_filter_order>, 2> hpf = {}; |