diff --git a/source/native-plugins/distrho-3bandeq/DistrhoPlugin3BandEQ.cpp b/source/native-plugins/distrho-3bandeq/DistrhoPlugin3BandEQ.cpp index 858971058..ba99a1a79 100644 --- a/source/native-plugins/distrho-3bandeq/DistrhoPlugin3BandEQ.cpp +++ b/source/native-plugins/distrho-3bandeq/DistrhoPlugin3BandEQ.cpp @@ -208,6 +208,12 @@ void DistrhoPlugin3BandEQ::d_activate() const float sr = (float)d_getSampleRate(); xLP = std::exp(-2.0f * kPI * freqLP / sr); + +#ifdef DISTRHO_OS_WINDOWS + // don't ask me why, but this fixes a crash/exception below on windows... + printf("%f\n", -xLP); +#endif + a0LP = 1.0f - xLP; b1LP = -xLP; diff --git a/source/native-plugins/distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp b/source/native-plugins/distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp index d6ec29446..381cf6dc7 100644 --- a/source/native-plugins/distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp +++ b/source/native-plugins/distrho-3bandsplitter/DistrhoPlugin3BandSplitter.cpp @@ -208,6 +208,12 @@ void DistrhoPlugin3BandSplitter::d_activate() const float sr = (float)d_getSampleRate(); xLP = std::exp(-2.0f * kPI * freqLP / sr); + +#ifdef DISTRHO_OS_WINDOWS + // don't ask me why, but this fixes a crash/exception below on windows... + printf("%f\n", -xLP); +#endif + a0LP = 1.0f - xLP; b1LP = -xLP;