mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves #364.
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user