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

@@ -98,7 +98,7 @@ public abstract class Tuner implements FrequencyChangeBroadcaster,
* Tuner Local Oscillator Frequency
* @return - frequency in Hertz
*/
public abstract int getFrequency() throws SourceException;
public abstract long getFrequency() throws SourceException;
/**
* Returns a tuner frequency channel source, tuned to the correct frequency
@@ -171,7 +171,7 @@ public abstract class Tuner implements FrequencyChangeBroadcaster,
/**
* Broadcasts a frequency change event to all registered listeners
*/
public void broadcastFrequencyChange( int frequency, int bandwidth )
public void broadcastFrequencyChange( long frequency, int bandwidth )
{
for( FrequencyChangeListener listener: mFrequencyChangeListeners )
{
@@ -183,7 +183,7 @@ public abstract class Tuner implements FrequencyChangeBroadcaster,
* Frequency change listener method. We receive change events from the
* controller and rebroadcast them to all registered listeners.
*/
public void frequencyChanged( int frequency, int bandwidth )
public void frequencyChanged( long frequency, int bandwidth )
{
broadcastFrequencyChange( frequency, bandwidth );
}