Changed FrequencyChangeListener interface to an event so that I could describe what event was causing the frequency change and to broadcast frequency and sample rate error values.

R820T - added a couple more sample rate settings to the enum and modified the periodic sample rate info logger.
This commit is contained in:
dennis.sheirer
2014-09-27 09:46:18 +00:00
parent e441ebf0c9
commit 550aed79d4
28 changed files with 600 additions and 500 deletions

View File

@@ -42,6 +42,11 @@ public class Oscillator
update();
}
public ComplexSample getCurrentAngle()
{
return mCurrentAngle;
}
private void update()
{
float anglePerSample =
@@ -64,6 +69,7 @@ public class Oscillator
*/
public void setSampleRate( int sampleRate )
{
System.out.println( "Oscillator - setting sampleRate to:" + sampleRate );
mSampleRate = (double)sampleRate;
update();
}