MSVC support

pull/1/head
Pascal Gauthier 11 years ago
parent 11a9286a88
commit 7211900796
  1. 4
      Source/PluginFx.cpp
  2. 2
      Source/PluginProcessor.cpp

@ -10,8 +10,8 @@
============================================================================== ==============================================================================
*/ */
#define _USE_MATH_DEFINES
#include "math.h" #include <math.h>
#include "PluginFx.h" #include "PluginFx.h"
#include "PluginProcessor.h" #include "PluginProcessor.h"

@ -312,7 +312,7 @@ void DexedAudioProcessor::processSamples(int n_samples, int16_t *buffer) {
int32_t val = audiobuf.get()[j] >> 4; int32_t val = audiobuf.get()[j] >> 4;
int clip_val = val < -(1 << 24) ? 0x8000 : val >= (1 << 24) ? 0x7fff : int clip_val = val < -(1 << 24) ? 0x8000 : val >= (1 << 24) ? 0x7fff :
val >> 9; val >> 9;
val = val & 0x0FFF7000; // val = val & 0x0FFF7000;
// TODO: maybe some dithering? // TODO: maybe some dithering?
if (j < jmax) { if (j < jmax) {
buffer[i + j] = clip_val; buffer[i + j] = clip_val;

Loading…
Cancel
Save