Adds an AM Demodulator to the list of available decoders.

This commit is contained in:
dennis.sheirer
2014-10-11 18:00:49 +00:00
parent c5c3029392
commit 61ecb5abf2
15 changed files with 472 additions and 47 deletions

View File

@@ -404,6 +404,7 @@ public class ProcessingChain implements Listener<Message>
}
if( mSource instanceof TunerChannelSource &&
mChannel.getDecodeConfiguration().supportsAFC() &&
mChannel.getDecodeConfiguration().isAFCEnabled() )
{
TunerChannelSource tcs = (TunerChannelSource)mSource;

View File

@@ -39,6 +39,8 @@ import controller.channel.Channel;
import controller.channel.Channel.ChannelType;
import controller.channel.ChannelEvent;
import controller.channel.ChannelEventListener;
import decode.am.AMChannelState;
import decode.am.AMPanel;
import decode.fleetsync2.FleetsyncChannelState;
import decode.fleetsync2.FleetsyncPanel;
import decode.ltrnet.LTRNetChannelState;
@@ -139,8 +141,12 @@ public class ChannelStateList extends JPanel implements ChannelEventListener
ChannelState state = channel.getProcessingChain().getChannelState();
ChannelStatePanel panel = null;
if( state instanceof NBFMChannelState )
if( state instanceof AMChannelState )
{
panel = new AMPanel( channel );
}
else if( state instanceof NBFMChannelState )
{
NBFMChannelState convState =
(NBFMChannelState)state;