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

@@ -36,7 +36,7 @@ public class TunerNode extends BaseNode implements FrequencyChangeListener
private static DecimalFormat FREQUENCY_FORMAT = new DecimalFormat( "0.00000" );
private static DecimalFormat SAMPLE_RATE_FORMAT = new DecimalFormat( "0.000" );
private int mFrequency;
private long mFrequency;
private int mBandwidth;
public TunerNode( Tuner tuner )
@@ -117,7 +117,7 @@ public class TunerNode extends BaseNode implements FrequencyChangeListener
}
@Override
public void frequencyChanged( int frequency, int bandwidth )
public void frequencyChanged( long frequency, int bandwidth )
{
mFrequency = frequency;
mBandwidth = bandwidth;