Skip to content

Commit 6c44259

Browse files
author
Tim Schneeberger
authored
Merge branch 'james34602:master' into extensions
2 parents 7aba3f2 + 736b25b commit 6c44259

File tree

18 files changed

+551
-801
lines changed

18 files changed

+551
-801
lines changed

Main/libjamesdsp/jni/jamesdsp/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ LOCAL_SRC_FILES := \
2828
jdsp/Effects/eel2/numericSys/libsamplerate/src_sinc.c \
2929
jdsp/Effects/eel2/numericSys/FilterDesign/generalFdesign.c \
3030
jdsp/Effects/eel2/numericSys/FilterDesign/cos_fib_paraunitary.c \
31+
jdsp/Effects/eel2/numericSys/FilterDesign/polyphaseFilterbank.c \
3132
jdsp/Effects/eel2/numericSys/FilterDesign/polyphaseASRC.c \
3233
jdsp/Effects/eel2/numericSys/FilterDesign/eqnerror.c \
3334
jdsp/Effects/eel2/numericSys/FilterDesign/firls.c \

Main/libjamesdsp/jni/jamesdsp/jdsp/Effects/convolver1D.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void Convolver1DProcessTwoStageFFTConvolver2x4x2(JamesDSPLib *jdsp, size_t n)
5959
{
6060
TwoStageFFTConvolver2x4x2Process(jdsp->conv.conv1d2x4x2_T_S, jdsp->tmpBuffer[0], jdsp->tmpBuffer[1], jdsp->tmpBuffer[0], jdsp->tmpBuffer[1], (unsigned int)n);
6161
}
62-
int Convolver1DLoadImpulseResponse(JamesDSPLib *jdsp, float *tempImpulseFloat, unsigned int impChannels, unsigned int impulseLengthActual)
62+
int Convolver1DLoadImpulseResponse(JamesDSPLib *jdsp, float *tempImpulseFloat, unsigned int impChannels, size_t impulseLengthActual)
6363
{
6464
jdsp->convolverEnabled = 0;
6565
Convolver1DDestructor(jdsp, 0);

Main/libjamesdsp/jni/jamesdsp/jdsp/Effects/dynamic.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ void JLimiterInit(JamesDSPLib *jdsp)
1818
#include <math.h>
1919
#include <float.h>
2020
#include "eel2/numericSys/codelet.h"
21-
#ifndef min
22-
#define min(a,b) (((a)<(b))?(a):(b))
23-
#endif
24-
#ifndef max
25-
#define max(a,b) (((a)>(b))?(a):(b))
26-
#endif
21+
#include "eel2/ns-eel.h"
2722
#ifndef M_PI
2823
#define M_PI 3.14159265358979323846
2924
#endif
@@ -77,7 +72,7 @@ unsigned LLRevBitsM(unsigned int x, unsigned int bits)
7772
void LLbitReversalTblM(unsigned *dst, unsigned int fftLen)
7873
{
7974
unsigned int bits = LLIntegerLog2M(fftLen);
80-
for (int i = 0; i < fftLen; ++i)
75+
for (unsigned int i = 0; i < fftLen; ++i)
8176
dst[i] = LLRevBitsM(i, bits);
8277
}
8378
void LLsinHalfTblFloatM(float *dst, unsigned int fftLen)
@@ -154,7 +149,7 @@ static float lerp1DNoExtrapo(float val, float *x, float *y, int n)
154149
void FFTCompressorSetSpectralFollowingRate(FFTDynamicRangeSquasher *comp, float fs, float fgt_facT)
155150
{
156151
comp->spectralRate = fs / (float)comp->fftLen * (float)ANALYSIS_OVERLAP_DRS;
157-
comp->fgt_fac = 1.0 - exp(-1.0 / (fgt_facT / 1000.0 * comp->spectralRate));
152+
comp->fgt_fac = (float)(1.0 - exp(-1.0 / (fgt_facT / 1000.0 * comp->spectralRate)));
158153
}
159154
void FFTCompressorSetParam(FFTDynamicRangeSquasher *comp, float fs, float maxAtk, float maxRel, float adapt)
160155
{

Main/libjamesdsp/jni/jamesdsp/jdsp/Effects/eel2/loose_eel.c

Lines changed: 0 additions & 200 deletions
This file was deleted.

Main/libjamesdsp/jni/jamesdsp/jdsp/Effects/eel2/ns-eel.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ typedef unsigned long long WDL_UINT64;
3737
typedef intptr_t INT_PTR;
3838
typedef uintptr_t UINT_PTR;
3939
#endif
40+
#ifndef min
41+
#define min(x,y) ((x)<(y)?(x):(y))
42+
#endif
4043
#if !defined(max)
4144
#define max(x,y) ((x)<(y)?(y):(x))
42-
#define min(x,y) ((x)<(y)?(x):(y))
4345
#endif
4446
#ifndef _WIN32
4547
#ifndef strnicmp

0 commit comments

Comments
 (0)