From 26cf383ead2cbf14d268e6edcefe7ce6c58f02fc Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 31 Dec 2014 12:48:18 +0200 Subject: [PATCH] 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 --- src/timidity/instrum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timidity/instrum.cpp b/src/timidity/instrum.cpp index 5ab55201e0..7454ca7a4e 100644 --- a/src/timidity/instrum.cpp +++ b/src/timidity/instrum.cpp @@ -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; }