commit 62236ad96cc43236f9efafd5c53e535abffb139a
parent 0357e4f1296b9aa911fda3f5ed58d1583b5a8270
Author: Christos Margiolis <christos@margiolis.net>
Date: Wed, 25 Aug 2021 17:04:24 +0300
mixer.3: updated MIX_VOLDENORM definition
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mixer_lib/mixer.3 b/mixer_lib/mixer.3
@@ -200,7 +200,7 @@ struct mix_dev {
#define MIX_VOLMIN 0.0f
#define MIX_VOLMAX 1.0f
#define MIX_VOLNORM(v) ((v) / 100.0f)
-#define MIX_VOLDENORM(v) ((int)roundf((v) * 100.0f))
+#define MIX_VOLDENORM(v) ((int)((v) * 100.0f + 0.5f))
float left; /* left volume */
float right; /* right volume */
} vol;