mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Build 0.1.3 - adds support for 48 kHz audio output from JMBE library for P25 audio. Resolves issue with Automatic Frequency Control on P25 C4FM channels where the channel was not tracking changes in tuner frequency.
This commit is contained in:
@@ -27,6 +27,7 @@ public class DirectGainControl implements GainController, RealSampleListener
|
||||
private final static Logger mLog =
|
||||
LoggerFactory.getLogger( DirectGainControl.class );
|
||||
|
||||
private float mDefaultGain;
|
||||
private float mGain;
|
||||
private float mMinimum;
|
||||
private float mMaximum;
|
||||
@@ -49,7 +50,8 @@ public class DirectGainControl implements GainController, RealSampleListener
|
||||
public DirectGainControl( float gain, float minimum, float maximum, float increment )
|
||||
{
|
||||
assert( minimum > 0 );
|
||||
|
||||
|
||||
mDefaultGain = gain;
|
||||
mGain = gain;
|
||||
mMinimum = minimum;
|
||||
mMaximum = maximum;
|
||||
@@ -62,6 +64,12 @@ public class DirectGainControl implements GainController, RealSampleListener
|
||||
mListener.receive( (float)( sample * mGain ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset()
|
||||
{
|
||||
mGain = mDefaultGain;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void increase()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user