diff --git a/audio/hermite.c b/audio/hermite.c index 9c1565221d..e919dd6d8b 100644 --- a/audio/hermite.c +++ b/audio/hermite.c @@ -53,7 +53,9 @@ static inline float hermite_kernel(float mu1, float a, float b, float c, float d rarch_resampler_t *resampler_new(void) { +#ifndef RESAMPLER_TEST RARCH_LOG("Hermite resampler [C]\n"); +#endif return (rarch_resampler_t*)calloc(1, sizeof(rarch_resampler_t)); } diff --git a/audio/sinc.c b/audio/sinc.c index 07e78d70b9..c78b25ff7a 100644 --- a/audio/sinc.c +++ b/audio/sinc.c @@ -33,21 +33,32 @@ #include #endif +#ifdef SINC_LOWER_QUALITY +#define PHASE_BITS 12 +#define SIDELOBES 4 +#define ENABLE_AVX 0 +#elif defined(SINC_HIGHER_QUALITY) +#define PHASE_BITS 16 +#define SIDELOBES 32 +#define ENABLE_AVX 1 +#else +#define PHASE_BITS 16 +#define SIDELOBES 8 +#define ENABLE_AVX 0 +#endif + // For the little amount of taps we're using, // SSE1 is faster than AVX for some reason. // AVX code is kept here though as by increasing number // of sinc taps, the AVX code is clearly faster than SSE1. -#define ENABLE_AVX 0 #if defined(__AVX__) && ENABLE_AVX #include #endif -#define PHASE_BITS 16 #define SUBPHASE_BITS 10 #define PHASES (1 << (PHASE_BITS + SUBPHASE_BITS)) -#define SIDELOBES 8 #define TAPS (SIDELOBES * 2) #define CUTOFF 0.98