From f6b67ec99e32e75f3fa6a3edf019cf6eb32dc1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Wed, 7 Aug 2024 01:06:45 -0400 Subject: [PATCH] Remove the global volume multiplication by 0.8 This commit removes the multiplication of all OpenAL output by 0.8 added by 4560589e25d51669ea4aa9f84cd5be83cf124b1b because I feel like the 0.8 factor served no purpose other than to fix perceived problems with the volume scale, which the commit that this pull request is part of is supposed to address. Feel free to revert this commit if it turns out the 0.8 factor served some other purpose. --- src/audio/al-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/al-util.h b/src/audio/al-util.h index 2bf215f4..e5ce3430 100644 --- a/src/audio/al-util.h +++ b/src/audio/al-util.h @@ -185,7 +185,7 @@ namespace Source } break; } - alSourcef(id.al, AL_GAIN, value * 0.8f); + alSourcef(id.al, AL_GAIN, value); } inline void setPitch(Source::ID id, float value)