diff --git a/Source/PluginFx.cpp b/Source/PluginFx.cpp index 2b9b5a5..ee52e8a 100644 --- a/Source/PluginFx.cpp +++ b/Source/PluginFx.cpp @@ -10,8 +10,8 @@ ============================================================================== */ - -#include "math.h" +#define _USE_MATH_DEFINES +#include #include "PluginFx.h" #include "PluginProcessor.h" diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 72d830b..c36c9b4 100755 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -312,7 +312,7 @@ void DexedAudioProcessor::processSamples(int n_samples, int16_t *buffer) { int32_t val = audiobuf.get()[j] >> 4; int clip_val = val < -(1 << 24) ? 0x8000 : val >= (1 << 24) ? 0x7fff : val >> 9; - val = val & 0x0FFF7000; + // val = val & 0x0FFF7000; // TODO: maybe some dithering? if (j < jmax) { buffer[i + j] = clip_val;