Fixed incorrect volume levels of Timidity instruments

With Emulate TiMidity option on (midi_timiditylike CVAR set to true) GUS emulation tried to output tones with infinite volumes
This commit is contained in:
alexey.lysiuk 2014-12-31 12:48:18 +02:00
parent 2900f03fa1
commit 26cf383ead

View file

@ -485,7 +485,7 @@ fail:
sample_t *tmp;
for (i = sp->data_length, tmp = sp->data; i; --i)
{
a = abs(*tmp++);
a = fabsf(*tmp++);
if (a > maxamp)
maxamp = a;
}