mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 10:37:26 -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:
@@ -17,7 +17,6 @@
|
||||
******************************************************************************/
|
||||
package source.tuner.rtl;
|
||||
|
||||
import source.Source.SampleType;
|
||||
import source.mixer.SampleAdapter;
|
||||
|
||||
public class RTL2832SampleAdapter extends SampleAdapter
|
||||
@@ -26,17 +25,15 @@ public class RTL2832SampleAdapter extends SampleAdapter
|
||||
|
||||
/**
|
||||
* Creates a static lookup table that converts the 8-bit valued range
|
||||
* from 0 - 255 into scaled float values of -128 to 0 to 127
|
||||
* from 0 - 255 into scaled float values of -32768.0 to 0 to 32512.0
|
||||
*/
|
||||
static
|
||||
{
|
||||
mLOOKUP_VALUES = new float[ 256 ];
|
||||
|
||||
float scale = (float)( 1.0f / 127.0f );
|
||||
|
||||
for( int x = 0; x < 256; x++ )
|
||||
{
|
||||
mLOOKUP_VALUES[ x ] = (float)( x - 128 ) * scale;
|
||||
mLOOKUP_VALUES[ x ] = (float)( x - 128 ) * 256.0f;
|
||||
}
|
||||
|
||||
mLOOKUP_VALUES[ 128 ] = 0.0000001f;
|
||||
|
||||
@@ -412,7 +412,7 @@ public abstract class RTL2832TunerController extends TunerController
|
||||
tunerClass = TunerType.FITIPOWER_FC0012;
|
||||
}
|
||||
|
||||
Log.debug( "RTL2832 - disabling I2C repeater" );
|
||||
Log.debug( "RTL2832 - disabling I2C repeater -- detected tuner type:" + tunerClass.toString() );
|
||||
|
||||
enableI2CRepeater( device, false );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user