Updates the NBFM decoder to allow user to select between 12.5 and 25.0

kHz channel bandwidth so that 25 kHz channels can be demodulated correctly.
This commit is contained in:
Denny
2018-09-16 07:21:14 -04:00
parent dae68515a5
commit a17132be0d
18 changed files with 362 additions and 225 deletions

View File

@@ -489,14 +489,14 @@ public class Channel extends Configuration implements Listener<SourceEvent>
SourceConfigTuner config = (SourceConfigTuner)mSourceConfiguration;
mTunerChannel = new TunerChannel(config.getFrequency(),
mDecodeConfiguration.getDecoderType().getChannelBandwidth());
mDecodeConfiguration.getChannelSpecification().getBandwidth());
}
else if(mSourceConfiguration.getSourceType() == SourceType.RECORDING)
{
SourceConfigRecording config = (SourceConfigRecording)mSourceConfiguration;
mTunerChannel = new TunerChannel(config.getFrequency(),
mDecodeConfiguration.getDecoderType().getChannelBandwidth());
mDecodeConfiguration.getChannelSpecification().getBandwidth());
}
}

View File

@@ -212,8 +212,7 @@ public class ChannelProcessingManager implements ChannelEventListener
try
{
source = mSourceManager.getSource(channel.getSourceConfiguration(),
channel.getDecodeConfiguration().getDecoderType().getChannelBandwidth(),
channel.getDecodeConfiguration().getDecoderType().getChannelSpecification());
channel.getDecodeConfiguration().getChannelSpecification());
}
catch(SourceException se)
{