Robert Crossfield 1c73db207e AUDIO: Fix integer sign extension issue in RJP1 envelope scaling
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.
2024-03-21 08:58:13 +02:00
..