mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
wip #34: refactored tuners to take a tuner controller as an argument.
Removed frequency change listener framework from tuner so that the tuner controller handles all frequency change interaction. Updated tuner view to allow selecting tuners for main spectral display and/or launching a new spectral display by clicking in the tuner table cell.
This commit is contained in:
@@ -93,7 +93,7 @@ public class TunerChannelSource extends ComplexSource
|
||||
throws RejectedExecutionException, SourceException
|
||||
{
|
||||
mTuner = tuner;
|
||||
mTuner.addListener( this );
|
||||
mTuner.getTunerController().addListener( (IFrequencyChangeProcessor)this );
|
||||
|
||||
mTunerChannel = tunerChannel;
|
||||
|
||||
@@ -172,7 +172,7 @@ public class TunerChannelSource extends ComplexSource
|
||||
if( !mRunning.get() )
|
||||
{
|
||||
/* Tell the tuner to release/unregister our resources */
|
||||
mTuner.removeFrequencyChangeProcessor( this );
|
||||
mTuner.getTunerController().removeListener( this );
|
||||
mTuner = null;
|
||||
mTunerChannel = null;
|
||||
mBuffer = null;
|
||||
|
||||
Reference in New Issue
Block a user