mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-17 02:57:35 -05:00
moved RecordingTuner ChannelizerType set to after the recording tuner was started. This way the sample rate is not 0. (#1279)
This commit is contained in:
@@ -20,6 +20,7 @@ package io.github.dsheirer.source.tuner.recording;
|
|||||||
|
|
||||||
import io.github.dsheirer.preference.UserPreferences;
|
import io.github.dsheirer.preference.UserPreferences;
|
||||||
import io.github.dsheirer.preference.source.ChannelizerType;
|
import io.github.dsheirer.preference.source.ChannelizerType;
|
||||||
|
import io.github.dsheirer.source.SourceException;
|
||||||
import io.github.dsheirer.source.tuner.ITunerErrorListener;
|
import io.github.dsheirer.source.tuner.ITunerErrorListener;
|
||||||
import io.github.dsheirer.source.tuner.Tuner;
|
import io.github.dsheirer.source.tuner.Tuner;
|
||||||
import io.github.dsheirer.source.tuner.TunerClass;
|
import io.github.dsheirer.source.tuner.TunerClass;
|
||||||
@@ -46,6 +47,11 @@ public class RecordingTuner extends Tuner
|
|||||||
super(new RecordingTunerController(tunerErrorListener, config.getPath(), config.getFrequency()), tunerErrorListener);
|
super(new RecordingTunerController(tunerErrorListener, config.getPath(), config.getFrequency()), tunerErrorListener);
|
||||||
|
|
||||||
mUserPreferences = userPreferences;
|
mUserPreferences = userPreferences;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start() throws SourceException {
|
||||||
|
super.start();
|
||||||
|
|
||||||
if(getTunerController().getCurrentSampleRate() < 100000.0d)
|
if(getTunerController().getCurrentSampleRate() < 100000.0d)
|
||||||
{
|
{
|
||||||
@@ -53,7 +59,7 @@ public class RecordingTuner extends Tuner
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ChannelizerType channelizerType = userPreferences.getTunerPreference().getChannelizerType();
|
ChannelizerType channelizerType = mUserPreferences.getTunerPreference().getChannelizerType();
|
||||||
|
|
||||||
if(channelizerType == ChannelizerType.POLYPHASE)
|
if(channelizerType == ChannelizerType.POLYPHASE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user