Browse Source

Fix a weird&stupid crash with 3bandeq/splitter on windows

pull/1/head
falkTX 10 years ago
parent
commit
01beb0e238
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      plugins/3BandEQ/DistrhoPlugin3BandEQ.cpp
  2. +6
    -0
      plugins/3BandSplitter/DistrhoPlugin3BandSplitter.cpp

+ 6
- 0
plugins/3BandEQ/DistrhoPlugin3BandEQ.cpp View File

@@ -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;


+ 6
- 0
plugins/3BandSplitter/DistrhoPlugin3BandSplitter.cpp View File

@@ -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;


Loading…
Cancel
Save