mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
P25 audio decoder integration.
Auto-discovers the jmbe ( https://github.com/DSheirer/jmbe ) library at startup and provides decode P25 Phase 1 audio
This commit is contained in:
@@ -27,6 +27,8 @@ import message.MessageDirection;
|
||||
import sample.real.RealSampleListener;
|
||||
import source.Source.SampleType;
|
||||
import alias.AliasList;
|
||||
import audio.AudioOutputImpl;
|
||||
import audio.IAudioOutput;
|
||||
import bits.MessageFramer;
|
||||
import bits.SyncPattern;
|
||||
import decode.Decoder;
|
||||
@@ -49,6 +51,7 @@ public class LTRNetDecoder extends Decoder implements Instrumentable
|
||||
private LTRFSKDecoder mLTRFSKDecoder;
|
||||
private MessageFramer mLTRMessageFramer;
|
||||
private LTRNetMessageProcessor mLTRMessageProcessor;
|
||||
private AudioOutputImpl mAudioOutput = new AudioOutputImpl( "LTRNet Decoder Audio Output" );
|
||||
|
||||
private List<Tap> mAvailableTaps;
|
||||
|
||||
@@ -83,6 +86,8 @@ public class LTRNetDecoder extends Decoder implements Instrumentable
|
||||
|
||||
mDCRemovalFilter.setListener( this.getRealReceiver() );
|
||||
}
|
||||
|
||||
addRealSampleListener( mAudioOutput );
|
||||
|
||||
mLTRFSKDecoder = new LTRFSKDecoder();
|
||||
|
||||
@@ -159,4 +164,10 @@ public class LTRNetDecoder extends Decoder implements Instrumentable
|
||||
}
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAudioOutput getAudioOutput()
|
||||
{
|
||||
return mAudioOutput;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user