mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-12 16:57:23 -05:00
AGF Tests/Tweaks;
This commit is contained in:
@@ -917,6 +917,10 @@ void agf (dsd_opts * opts, dsd_state * state, float samp[160], int slot)
|
||||
//trying things
|
||||
float gain = 1.0f;
|
||||
|
||||
//test increasing gain on DMR EP samples with degraded AMBE samples
|
||||
if (state->payload_algid == 0x21 || state->payload_algidR == 0x21)
|
||||
gain = 1.75f;
|
||||
|
||||
if (opts->audio_gain != 0)
|
||||
gain = opts->audio_gain / 25.0f;
|
||||
|
||||
@@ -946,9 +950,10 @@ void agf (dsd_opts * opts, dsd_state * state, float samp[160], int slot)
|
||||
if (samp[(j*20)+i] < mmin)
|
||||
samp[(j*20)+i] = mmin;
|
||||
|
||||
samp[(j*20)+i] *= gain * 0.8f;
|
||||
aavg += fabsf(samp[i]);
|
||||
|
||||
samp[(j*20)+i] *= gain * 0.8f;
|
||||
|
||||
} //i loop
|
||||
|
||||
aavg /= 20.0f; //average of the 20 samples
|
||||
|
||||
Reference in New Issue
Block a user