mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 09:07:27 -05:00
[WIP] Removes all usage of Buffer, RealBuffer and ComplexBuffer.
This commit is contained in:
@@ -19,7 +19,6 @@ import io.github.dsheirer.buffer.FloatCircularBuffer;
|
||||
import io.github.dsheirer.sample.buffer.ReusableComplexBuffer;
|
||||
import io.github.dsheirer.sample.buffer.ReusableComplexBufferQueue;
|
||||
import io.github.dsheirer.sample.complex.Complex;
|
||||
import io.github.dsheirer.sample.complex.ComplexBuffer;
|
||||
import io.github.dsheirer.sample.complex.ComplexSampleListener;
|
||||
|
||||
public class ComplexFeedForwardGainControl implements ComplexSampleListener
|
||||
@@ -137,17 +136,6 @@ public class ComplexFeedForwardGainControl implements ComplexSampleListener
|
||||
return processed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies gain to the complex sample buffer
|
||||
* @param buffer to apply gain
|
||||
* @return buffer with gain applied samples
|
||||
*/
|
||||
public ComplexBuffer filter(ComplexBuffer buffer)
|
||||
{
|
||||
float[] filtered = filter(buffer.getSamples());
|
||||
return new ComplexBuffer(filtered);
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies gain to the complex sample buffer
|
||||
* @param buffer to apply gain
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package io.github.dsheirer.dsp.gain;
|
||||
|
||||
import io.github.dsheirer.sample.real.RealBuffer;
|
||||
|
||||
public class NonClippingGain
|
||||
{
|
||||
private float mGain;
|
||||
@@ -50,16 +48,4 @@ public class NonClippingGain
|
||||
|
||||
return samples;
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies gain to the real buffer
|
||||
*/
|
||||
public RealBuffer apply( RealBuffer buffer )
|
||||
{
|
||||
float[] samples = buffer.getSamples();
|
||||
|
||||
apply( samples );
|
||||
|
||||
return buffer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user