mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 11:27:44 +00:00
1c73db207e
Resolve an issue where the value was incorrectly treated as a signed integer during multiplication/division. This was causing fluctuations in volume, with levels varying up and down. The original code reads the envelopeEnd(1 and 2) value as a byte, extends it to a word then ANDs it with 0x00FF before multiplying/dividing.