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

@@ -38,7 +38,7 @@ public class FloatWaveSource extends WaveSource
private AudioInputStream mInputStream = null;
private int mBytesPerFrame = 0;
private int mFrequency = 0;
private long mFrequency = 0;
private byte[] mBuffer;
private int mBufferPointer = 0;
@@ -84,7 +84,7 @@ public class FloatWaveSource extends WaveSource
* Returns the frequency set for this file. Normally returns zero, but
* the value can be set with setFrequency() method.
*/
public int getFrequency()
public long getFrequency()
{
return mFrequency;
}