Fixed typo.

pull/4/head
Holger Wirtz 7 years ago
parent 0d26a425eb
commit a54b879471
  1. BIN
      .fm_op_kernel.cpp.swp
  2. 2
      dexed.cpp
  3. 5
      fm_op_kernel.cpp

Binary file not shown.

@ -144,7 +144,7 @@ void Dexed::getSamples(uint16_t n_samples, int16_t* buffer)
int32_t val = audiobuf.get()[j]; int32_t val = audiobuf.get()[j];
val = val >> 4; val = val >> 4;
#ifdef USE_TEENSY_DSP #ifdef USE_TEENSY_DSP
int32_t clip_val=signed_saturate_rshift(32,24,9); int32_t clip_val=signed_saturate_rshift(val,24,9);
#else #else
int32_t clip_val = val < -(1 << 24) ? 0x8000 : val >= (1 << 24) ? 0x7fff : val >> 9; int32_t clip_val = val < -(1 << 24) ? 0x8000 : val >= (1 << 24) ? 0x7fff : val >> 9;
#endif #endif

@ -25,8 +25,9 @@
#include "synth.h" #include "synth.h"
#include "sin.h" #include "sin.h"
#include "fm_op_kernel.h" #include "fm_op_kernel.h"
#include "config.h"
#ifdef HAVE_NEONx #ifdef HAVE_NEON
static bool hasNeon() { static bool hasNeon() {
return true; return true;
return (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0; return (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0;
@ -36,7 +37,7 @@ extern "C"
void neon_fm_kernel(const int *in, const int *busin, int *out, int count, void neon_fm_kernel(const int *in, const int *busin, int *out, int count,
int32_t phase0, int32_t freq, int32_t gain1, int32_t dgain); int32_t phase0, int32_t freq, int32_t gain1, int32_t dgain);
const int32_t __attribute__ ((aligned(16))) zeros[N] = {0}; const int32_t __attribute__ ((aligned(16))) zeros[_N_] = {0};
#else #else
static bool hasNeon() { static bool hasNeon() {

Loading…
Cancel
Save