mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 14:21:41 +00:00
SAGA2: Fix volume quantization
This commit is contained in:
parent
36feb1c271
commit
497e1a1e85
@ -1762,7 +1762,7 @@ inline int16 quantizedVolume(uint16 trueVolume) {
|
||||
int16 quantized = trueVolume & 0xFFF8;
|
||||
quantized += (quantized / 16);
|
||||
|
||||
quantized += 2; // In ScummVM the range is 0..255
|
||||
quantized = CLIP(quantized, (int16)0, (int16)255);
|
||||
|
||||
return quantized;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user