The C4FM and LSM decoders were issuing a PLL reset with each new
channel that was allocated, causing any existing decoding channels to
be disrupted.  Decoding re-sync delays or inability to recapture the
 signal for decoding would likely result as the tuner's overall PPM
 caused misadjustment in the channel.

Resolved a NPE that was occurring in the FrequencyController for
sample rate changes.
This commit is contained in:
Denny
2018-07-14 11:27:38 -04:00
parent 821e719015
commit 609a1e86c7
5 changed files with 35 additions and 21 deletions

View File

@@ -95,15 +95,18 @@ public class FrequencyController
*/
public void setSampleRate(int sampleRate) throws SourceException
{
if(!mLocked)
if(sampleRate != mSampleRate)
{
mSampleRate = sampleRate;
if(!mLocked)
{
mSampleRate = sampleRate;
broadcastSampleRateChange();
}
else
{
mLog.warn("Cannot change sample rate while tuner is is LOCKED state.");
broadcastSampleRateChange();
}
else
{
mLog.warn("Cannot change sample rate while tuner is is LOCKED state.");
}
}
}