mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
#1568 Updates NBFM decoder configuration so user can enable/disable high-pass filter option in the audio module to effect audio playback and audio recording of the demodulated audio. Disabling the filter allows recording of DC and sub-audible signalling that may be present in the demodulated audio (e.g. LTR or squelching signalling). (#1569)
Co-authored-by: sheirerd <sheirerd@ainfosec.com>
This commit is contained in:
@@ -29,6 +29,11 @@ import io.github.dsheirer.source.tuner.channel.ChannelSpecification;
|
||||
*/
|
||||
public class DecodeConfigNBFM extends DecodeConfigAnalog
|
||||
{
|
||||
private boolean mAudioFilter = true;
|
||||
|
||||
/**
|
||||
* Constructs an instance
|
||||
*/
|
||||
public DecodeConfigNBFM()
|
||||
{
|
||||
}
|
||||
@@ -62,4 +67,23 @@ public class DecodeConfigNBFM extends DecodeConfigAnalog
|
||||
throw new IllegalArgumentException("Unrecognized FM bandwidth value: " + getBandwidth());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the user wants the demodulated audio to be high-pass filtered.
|
||||
* @return enable status, defaults to true.
|
||||
*/
|
||||
@JacksonXmlProperty(isAttribute = true, localName = "audioFilter")
|
||||
public boolean isAudioFilter()
|
||||
{
|
||||
return mAudioFilter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the enabled state of high-pass filtering of the demodulated audio.
|
||||
* @param audioFilter to true to enable high-pass filtering.
|
||||
*/
|
||||
public void setAudioFilter(boolean audioFilter)
|
||||
{
|
||||
mAudioFilter = audioFilter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user