Resolves issue with polyphase filter gain and channel output processor gain

This commit is contained in:
Denny
2018-08-31 04:50:58 -04:00
parent b8a46af836
commit 994e78f42b
8 changed files with 62 additions and 28 deletions

View File

@@ -56,4 +56,17 @@ public class ReusableComplexBuffer extends ReusableFloatBuffer
{
return getSamples().length / 2;
}
/**
* Applies the gain value to the samples contained in this buffer
*/
public void applyGain(double gain)
{
float[] samples = getSamples();
for(int x = 0; x < samples.length; x++)
{
samples[x] *= gain;
}
}
}