mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Decouples DecoderState from the Decoder and makes DecoderState inherit
from Module so that Decoder can function independent of DecoderSTate and DecoderState can more cleanly interface with other modules. Resolves issue with LTR-type decoders where the AudioModule was filtering demodulated audio buffers before the decoder received the audio - demodulated audio buffers are now copied before creating AudioPackets.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
package module.decode;
|
||||
|
||||
import module.decode.config.DecodeConfiguration;
|
||||
import module.decode.state.DecoderState;
|
||||
import sample.Listener;
|
||||
import audio.squelch.ISquelchStateProvider;
|
||||
import audio.squelch.SquelchState;
|
||||
@@ -36,10 +35,8 @@ public abstract class PrimaryDecoder extends Decoder implements ISquelchStatePro
|
||||
|
||||
protected DecodeConfiguration mDecodeConfiguration;
|
||||
|
||||
public PrimaryDecoder( DecodeConfiguration config, DecoderState decoderState )
|
||||
public PrimaryDecoder( DecodeConfiguration config )
|
||||
{
|
||||
super( decoderState );
|
||||
|
||||
mDecodeConfiguration = config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user