Commit 24c46391 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Spatializer: kill warnings and improve locality

parent e26c3d8c
...@@ -87,7 +87,7 @@ void revmodel::mute() ...@@ -87,7 +87,7 @@ void revmodel::mute()
* /param long numsamples number of samples to be processed * /param long numsamples number of samples to be processed
* /param int skip number of channels in the audio stream * /param int skip number of channels in the audio stream
*****************************************************************************/ *****************************************************************************/
void revmodel::processreplace(float *inputL, float *outputL, long numsamples, int skip) void revmodel::processreplace(float *inputL, float *outputL, long /* numsamples */, int skip)
{ {
float outL,outR,input; float outL,outR,input;
float inputR; float inputR;
...@@ -121,11 +121,10 @@ void revmodel::processreplace(float *inputL, float *outputL, long numsamples, in ...@@ -121,11 +121,10 @@ void revmodel::processreplace(float *inputL, float *outputL, long numsamples, in
outputL[1] = (outR*wet1 + outL*wet2 + inputR*dry); outputL[1] = (outR*wet1 + outL*wet2 + inputR*dry);
} }
void revmodel::processmix(float *inputL, float *outputL, long numsamples, int skip) void revmodel::processmix(float *inputL, float *outputL, long /* numsamples */, int skip)
{ {
float outL,outR,input; float outL,outR,input;
float inputR; float inputR;
int i;
outL = outR = 0; outL = outR = 0;
if (skip > 1) if (skip > 1)
...@@ -135,14 +134,14 @@ void revmodel::processmix(float *inputL, float *outputL, long numsamples, int sk ...@@ -135,14 +134,14 @@ void revmodel::processmix(float *inputL, float *outputL, long numsamples, int sk
input = (inputL[0] + inputR) * gain; input = (inputL[0] + inputR) * gain;
// Accumulate comb filters in parallel // Accumulate comb filters in parallel
for(i=0; i<numcombs; i++) for(int i=0; i<numcombs; i++)
{ {
outL += combL[i].process(input); outL += combL[i].process(input);
outR += combR[i].process(input); outR += combR[i].process(input);
} }
// Feed through allpasses in series // Feed through allpasses in series
for(i=0; i<numallpasses; i++) for(int i=0; i<numallpasses; i++)
{ {
outL = allpassL[i].process(outL); outL = allpassL[i].process(outL);
outR = allpassR[i].process(outR); outR = allpassR[i].process(outR);
...@@ -158,8 +157,6 @@ void revmodel::update() ...@@ -158,8 +157,6 @@ void revmodel::update()
{ {
// Recalculate internal values after parameter change // Recalculate internal values after parameter change
int i;
wet1 = wet*(width/2 + 0.5f); wet1 = wet*(width/2 + 0.5f);
wet2 = wet*((1-width)/2); wet2 = wet*((1-width)/2);
...@@ -176,13 +173,13 @@ void revmodel::update() ...@@ -176,13 +173,13 @@ void revmodel::update()
gain = fixedgain; gain = fixedgain;
} }
for(i=0; i<numcombs; i++) for(int i=0; i<numcombs; i++)
{ {
combL[i].setfeedback(roomsize1); combL[i].setfeedback(roomsize1);
combR[i].setfeedback(roomsize1); combR[i].setfeedback(roomsize1);
} }
for(i=0; i<numcombs; i++) for(int i=0; i<numcombs; i++)
{ {
combL[i].setdamp(damp1); combL[i].setdamp(damp1);
combR[i].setdamp(damp1); combR[i].setdamp(damp1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment