mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 01:27:34 -05:00
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -277,11 +277,11 @@ public class NBFMDecoder extends PrimaryDecoder implements ISourceEventListener,
|
|||||||
int decimationRate = 0;
|
int decimationRate = 0;
|
||||||
double decimatedSampleRate = sampleRate;
|
double decimatedSampleRate = sampleRate;
|
||||||
|
|
||||||
if(sampleRate / 2 > mChannelBandwidth)
|
if(sampleRate / 2 >= (mChannelBandwidth * 2))
|
||||||
{
|
{
|
||||||
decimationRate = 2;
|
decimationRate = 2;
|
||||||
|
|
||||||
while(sampleRate / decimationRate / 2 > mChannelBandwidth)
|
while(sampleRate / decimationRate / 2 >= (mChannelBandwidth * 2))
|
||||||
{
|
{
|
||||||
decimationRate *= 2;
|
decimationRate *= 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user