mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user