(Android) Fix build

This commit is contained in:
twinaphex 2014-05-28 04:15:52 +02:00
parent ac4377ad23
commit 152e022b5b
3 changed files with 9 additions and 6 deletions

View File

@ -20,7 +20,7 @@
#include <string.h>
#define phaserlfoshape 4.0
#define lfoskipsamples 20
#define phaserlfoskipsamples 20
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
@ -67,7 +67,7 @@ static void phaser_process(void *data, struct dspfilter_output *output,
for (c = 0; c < 2; c++)
m[c] = in[c] + ph->fbout[c] * ph->fb * 0.01f;
if ((ph->skipcount++ % lfoskipsamples) == 0)
if ((ph->skipcount++ % phaserlfoskipsamples) == 0)
{
ph->gain = 0.5 * (1.0 + cos(ph->skipcount * ph->lfoskip + ph->phase));
ph->gain = (exp(ph->gain * phaserlfoshape) - 1.0) / (exp(phaserlfoshape) - 1);

View File

@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>
#define lfoskipsamples 30
#define wahwahlfoskipsamples 30
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
@ -59,7 +59,7 @@ static void wahwah_process(void *data, struct dspfilter_output *output,
{
float in[2] = { out[0], out[1] };
if ((wah->skipcount++ % lfoskipsamples) == 0)
if ((wah->skipcount++ % wahwahlfoskipsamples) == 0)
{
float frequency = (1.0 + cos(wah->skipcount * wah->lfoskip + wah->phase)) / 2.0;
frequency = frequency * wah->depth * (1.0 - wah->freqofs) + wah->freqofs;

View File

@ -480,9 +480,12 @@ FILTERS
#include "../gfx/filters/lq2x.c"
#include "../gfx/filters/phosphor2x.c"
#include "../audio/filters/panning.c"
#include "../audio/filters/iir.c"
#include "../audio/filters/echo.c"
#include "../audio/filters/iir.c"
#include "../audio/filters/panning.c"
#include "../audio/filters/phaser.c"
#include "../audio/filters/reverb.c"
#include "../audio/filters/wahwah.c"
#endif
/*============================================================
DYNAMIC