mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Creates new HeterodyneChannelSourceManager that uses frequency translation
and CIC decimation for each channel provided by the tuner.
This commit is contained in:
@@ -63,6 +63,29 @@ public class ReusableComplexBufferAssembler
|
||||
mListener = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the samples to this assembler. As each buffer is assembled, it will be dispatched to the registered
|
||||
* listener.
|
||||
*
|
||||
* @param inphase sample to assemble
|
||||
* @param quadrature sample to assemble
|
||||
*/
|
||||
public void receive(float inphase, float quadrature)
|
||||
{
|
||||
if(mBuffer.remaining() >= 2)
|
||||
{
|
||||
mBuffer.put(inphase);
|
||||
mBuffer.put(quadrature);
|
||||
|
||||
mTimestampManager.increment(1);
|
||||
|
||||
if(!mBuffer.hasRemaining())
|
||||
{
|
||||
flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the samples to this assembler. As each buffer is assembled, it will be dispatched to the registered
|
||||
* listener.
|
||||
|
||||
Reference in New Issue
Block a user