From 721190079618536212519281b40a5119d9c1323e Mon Sep 17 00:00:00 2001 From: Pascal Gauthier Date: Mon, 13 Jan 2014 19:16:38 -0500 Subject: [PATCH] MSVC support --- Source/PluginFx.cpp | 4 ++-- Source/PluginProcessor.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;