[Reverb]
- added resize() - removed process()
This commit is contained in:
+8
-13
@@ -33,6 +33,14 @@ class Reverb
|
||||
}
|
||||
}
|
||||
|
||||
void resize(uint maxDelay)
|
||||
{
|
||||
for (auto diffusor: m_diffusors)
|
||||
{
|
||||
diffusor.resize(maxDelay);
|
||||
}
|
||||
}
|
||||
|
||||
uint getNumDiffusionSteps()
|
||||
{
|
||||
return m_diffusors.size();
|
||||
@@ -103,19 +111,6 @@ class Reverb
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void process(float *in, float *out, unsigned numPoints)
|
||||
{
|
||||
for (int i=0; i < numPoints; i++)
|
||||
{
|
||||
T temp = in[i];
|
||||
for (auto diffusor: m_diffusors)
|
||||
{
|
||||
temp = diffusor.process(temp);
|
||||
}
|
||||
out[i] = temp;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user