Updated spectral display to used dBm scale and removed baseline/amplification items.

Updated sample handling code to use -1.0 to 1.0 float values throughout, to support P25 decoder and symbol filter.
This commit is contained in:
dennis.sheirer
2014-11-01 17:39:06 +00:00
parent 86f374bb88
commit ae0568ff3b
34 changed files with 821 additions and 412 deletions

View File

@@ -25,6 +25,7 @@ import java.nio.ByteOrder;
*/
public class ShortAdapter extends SampleAdapter
{
private ShortToFloatMap mMap = new ShortToFloatMap();
private ByteOrder mByteOrder = ByteOrder.LITTLE_ENDIAN;
@Override
@@ -42,7 +43,7 @@ public class ShortAdapter extends SampleAdapter
while( buffer.hasRemaining() )
{
processed[ pointer ] = (float)buffer.getShort();
processed[ pointer ] = mMap.get( buffer.getShort() );
pointer++;
}