mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
Re-add GLOBAL_VOLUME
but set it to 1 instead of 0.8
This commit is contained in:
parent
d3a0b4c9fb
commit
2b944a0b58
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@
|
|||
#include <assert.h>
|
||||
#include <cmath>
|
||||
|
||||
#define GLOBAL_VOLUME 1.0f
|
||||
|
||||
namespace AL
|
||||
{
|
||||
|
||||
|
@ -172,7 +174,7 @@ namespace Source
|
|||
if (value > FLT_EPSILON) {
|
||||
value = std::pow(10.0f, -(35.0f / 20.0f) * (1.0f - value));
|
||||
}
|
||||
alSourcef(id.al, AL_GAIN, value);
|
||||
alSourcef(id.al, AL_GAIN, value * GLOBAL_VOLUME);
|
||||
}
|
||||
|
||||
inline void setPitch(Source::ID id, float value)
|
||||
|
|
Loading…
Add table
Reference in a new issue