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

@@ -34,7 +34,7 @@ public class Oscillator
* @param frequency - positive or negative frequency in hertz
* @param sampleRate - in hertz
*/
public Oscillator( int frequency, int sampleRate )
public Oscillator( long frequency, int sampleRate )
{
mSampleRate = (double)sampleRate;
mFrequency = (double)frequency;
@@ -53,7 +53,7 @@ public class Oscillator
/**
* Sets or changes the frequency of this oscillator
*/
public void setFrequency( int frequency )
public void setFrequency( long frequency )
{
mFrequency = (double)frequency;
update();