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:
@@ -17,6 +17,8 @@
|
||||
******************************************************************************/
|
||||
package decode.nbfm;
|
||||
|
||||
import audio.AudioOutputImpl;
|
||||
import audio.IAudioOutput;
|
||||
import sample.real.RealSampleListener;
|
||||
import source.Source.SampleType;
|
||||
import decode.Decoder;
|
||||
@@ -34,6 +36,7 @@ public class NBFMDecoder extends Decoder
|
||||
|
||||
private FilteringNBFMDemodulator mDemodulator;
|
||||
private DCRemovalFilter2 mDCRemovalFilter;
|
||||
private AudioOutputImpl mAudioOutput = new AudioOutputImpl( "NBFM Decoder Audio Output" );
|
||||
|
||||
public NBFMDecoder( SampleType sampleType )
|
||||
{
|
||||
@@ -68,6 +71,8 @@ public class NBFMDecoder extends Decoder
|
||||
*/
|
||||
mDCRemovalFilter.setListener( this.getRealReceiver() );
|
||||
}
|
||||
|
||||
addRealSampleListener( mAudioOutput );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -84,4 +89,10 @@ public class NBFMDecoder extends Decoder
|
||||
mDemodulator.addListener( listener );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAudioOutput getAudioOutput()
|
||||
{
|
||||
return mAudioOutput;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user