Converted frequency to long primitive type (from integer) in anticipation of HackRF support which requires frequencies greater than 2.147 GHz, which is the max hertz value that can be represented by an integer primitive.

This commit is contained in:
dennis.sheirer
2014-07-08 14:40:11 +00:00
parent cdf8c730bc
commit 35a2cebe03
51 changed files with 240 additions and 419 deletions

View File

@@ -319,7 +319,7 @@ public class SpectralDisplayPanel extends JPanel
* Receives frequency change events -- primarily from tuner components.
*/
@Override
public void frequencyChanged( int frequency, int bandwidth )
public void frequencyChanged( long frequency, int bandwidth )
{
mChannelPanel.frequencyChanged( frequency, bandwidth );
mDFTProcessor.frequencyChanged( frequency, bandwidth );
@@ -479,7 +479,7 @@ public class SpectralDisplayPanel extends JPanel
contextMenu.add( new PauseItem( mWaterfallPanel, "Pause" ) );
}
int frequency =
long frequency =
mChannelPanel.getFrequencyFromAxis( event.getX() );
if( event.getComponent() == mChannelPanel )
@@ -757,10 +757,10 @@ public class SpectralDisplayPanel extends JPanel
private static final long serialVersionUID = 1L;
private ResourceManager mResourceManager;
private int mFrequency;
private long mFrequency;
private DecoderType mDecoder;
public DecoderItem( ResourceManager manager, int frequency, DecoderType type )
public DecoderItem( ResourceManager manager, long frequency, DecoderType type )
{
super( type.getDisplayString() );