mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves issue with polyphase filter gain and channel output processor gain
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user