mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Channel Spectral Display
- Adds Channel Spectrum tab to display FFT of the audio output of the currently selected channel - Upgrades to JTransforms 3.0 FFT library - Adds three new context menus to main and channel spectral displays: -- Baseline - affects the vertical rendering baseline of the FFT -- Amplification - affects the vertical height of each FFT bin -- Averaging - affects how many FFTs are averaged to produce the display
This commit is contained in:
@@ -143,6 +143,33 @@ public class SettingsManager
|
||||
return mSettings.getSetting( name );
|
||||
}
|
||||
|
||||
public IntegerSetting getIntegerSetting( String name, int defaultValue )
|
||||
{
|
||||
IntegerSetting setting = mSettings.getIntegerSetting( name );
|
||||
|
||||
if( setting == null )
|
||||
{
|
||||
setting = new IntegerSetting( name, defaultValue );
|
||||
|
||||
mSettings.addSetting( setting );
|
||||
|
||||
save();
|
||||
}
|
||||
|
||||
return setting;
|
||||
}
|
||||
|
||||
public void setIntegerSetting( String name, int value )
|
||||
{
|
||||
IntegerSetting setting = getIntegerSetting( name, value );
|
||||
|
||||
setting.setValue( value );
|
||||
|
||||
save();
|
||||
|
||||
broadcastSettingChange( setting );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current setting, or if the setting doesn't exist
|
||||
* returns a newly created setting with the specified parameters
|
||||
|
||||
Reference in New Issue
Block a user