mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 12:27:51 +02:00
bugfix
This commit is contained in:
@ -83,6 +83,9 @@ namespace dsp::loop {
|
||||
amp = (inAmp > amp) ? ((amp * _invAttack) + (inAmp * _attack)) : ((amp * _invDecay) + (inAmp * _decay));
|
||||
gain = std::min<float>(_setPoint / amp, _maxGain);
|
||||
}
|
||||
else {
|
||||
gain = 1.0f;
|
||||
}
|
||||
|
||||
// If clipping is detected look ahead and correct
|
||||
if (inAmp*gain > _maxOutputAmp) {
|
||||
|
Reference in New Issue
Block a user