diff --git a/src/dsp/filter/channelizer/PolyphaseChannelSource.java b/src/dsp/filter/channelizer/PolyphaseChannelSource.java index 8a36d9be..cf6914d5 100644 --- a/src/dsp/filter/channelizer/PolyphaseChannelSource.java +++ b/src/dsp/filter/channelizer/PolyphaseChannelSource.java @@ -18,8 +18,10 @@ ******************************************************************************/ package dsp.filter.channelizer; +import channel.heartbeat.Heartbeat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import sample.Listener; import sample.OverflowableTransferQueue; import sample.complex.ComplexBuffer; import sample.real.IOverflowListener; @@ -184,6 +186,18 @@ public class PolyphaseChannelSource extends ComplexChannelSource mLog.debug("Request for frequency correction: " + correction + " -- not yet implemented"); } + @Override + public void setHeartbeatListener(Listener listener) + { + //TODO: implement this + } + + @Override + public void removeHeartbeatListener() + { + //TODO: implement this + } + @Override public void reset() { diff --git a/src/dsp/filter/channelizer/output/TwoChannelOutputProcessor.java b/src/dsp/filter/channelizer/output/TwoChannelOutputProcessor.java index 970777f3..56d943ad 100644 --- a/src/dsp/filter/channelizer/output/TwoChannelOutputProcessor.java +++ b/src/dsp/filter/channelizer/output/TwoChannelOutputProcessor.java @@ -79,6 +79,6 @@ public class TwoChannelOutputProcessor extends ChannelOutputProcessor // float i = channels[mChannelOffset]; // float q = channels[mChannelOffset + 1]; - listener.receive(getFrequencyCorrectedInphase(i, q), getFrequencyCorrectedQuadrature(i, q)); +// listener.receive(getFrequencyCorrectedInphase(i, q), getFrequencyCorrectedQuadrature(i, q)); } } diff --git a/src/instrument/tap/stream/BinaryTapViewPanel.java b/src/instrument/tap/stream/BinaryTapViewPanel.java index 07b72667..03ae5fdf 100644 --- a/src/instrument/tap/stream/BinaryTapViewPanel.java +++ b/src/instrument/tap/stream/BinaryTapViewPanel.java @@ -93,7 +93,7 @@ public class BinaryTapViewPanel extends TapViewPanel * Paints a polyline representing a boolean value with a 0 or 1 label in * the middle of it * - * @param graphics + * @param graphics object * @param index - index of the sample int the sample buffer * @param value - bit value, 0 or 1 */ diff --git a/src/module/ProcessingChain.java b/src/module/ProcessingChain.java index 9047051d..6736aece 100644 --- a/src/module/ProcessingChain.java +++ b/src/module/ProcessingChain.java @@ -320,7 +320,12 @@ public class ProcessingChain implements IChannelEventListener if(module instanceof ISourceEventListener) { - mFrequencyChangeEventBroadcaster.addListener(frequencyChangeEventListener); + Listener listener = ((ISourceEventListener)module).getSourceEventListener(); + + if(listener != null) + { + mFrequencyChangeEventBroadcaster.addListener(listener); + } } if(module instanceof IHeartbeatListener)