Initial commit of redesigned internal processing and audio management.

Note: Several of the decoders are currently non-functioning in this
commit.  If you want the latest functioning codebase, please checkout
the commit prior to this one.  All decoders will eventually be updated
with this new architecture.

Currently broken:
- Logging and recording
- Aux decoders (Fleetsync/MDC/LoJack/Tait)
- LTR/Passport decoders

Changes in this commit:
- Module architecture for decoders and components with central
provisioning by the DecoderFactory
- Transition from Complex sample stream processing to float buffer
processing for improved memory management
- Redesigned filter structures - to support buffers and streams
- Resolved several memory leak issues
- Universal sharing of the thread pool manager
- Added centralized audio management with call/user prioritization and
new gui with mute/volume controls
- Embedded audio metadata for eventual streaming support
- Redesigned ProcessingChain to support independent re-use
- Added new TrafficChannelManager to handle traffic channel allocations
- Traffic Channel pool size and Call timeout available in P25 and
MPT1327 configs
- Redesigned channel and decoder gui components
This commit is contained in:
denny
2015-09-01 07:10:26 -04:00
parent 538a299246
commit f4d8ea281d
570 changed files with 21578 additions and 17012 deletions

View File

@@ -35,7 +35,8 @@ import org.slf4j.LoggerFactory;
import sample.Broadcaster;
import sample.Listener;
import sample.complex.ComplexSample;
import sample.SampleType;
import sample.complex.Complex;
public class ComplexWaveSource extends WaveSource
{
@@ -56,7 +57,7 @@ public class ComplexWaveSource extends WaveSource
private static int BUFFER_SAMPLE_SIZE = 2000;
private Broadcaster<ComplexSample> mBroadcaster = new Broadcaster<ComplexSample>();
private Broadcaster<Complex> mBroadcaster = new Broadcaster<Complex>();
/**
* Single channel (mono) wave file playback source with optional looping
@@ -227,7 +228,7 @@ public class ComplexWaveSource extends WaveSource
if( broadcast )
{
send( new ComplexSample( (float)i / 32767.0f, (float)q / 32767.0f ) );
send( new Complex( (float)i / 32767.0f, (float)q / 32767.0f ) );
}
success = true;
@@ -278,7 +279,7 @@ public class ComplexWaveSource extends WaveSource
/**
* Broadcasts a sample to the registered listeners
*/
private void send( ComplexSample sample )
private void send( Complex sample )
{
mBroadcaster.broadcast( sample );
}
@@ -286,12 +287,12 @@ public class ComplexWaveSource extends WaveSource
/**
* Adds a new listener to receive samples as they are read from the wave file
*/
public void addListener( Listener<ComplexSample> listener )
public void addListener( Listener<Complex> listener )
{
mBroadcaster.addListener( listener );
}
public void removeListener( Listener<ComplexSample> listener )
public void removeListener( Listener<Complex> listener )
{
mBroadcaster.removeListener( listener );
}