QSound: change volume macro formula

This commit is contained in:
tildearrow 2022-03-29 02:28:40 -05:00
parent f92eb9352d
commit 5cea8ed3e3
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ void DivPlatformQSound::tick() {
for (int i=0; i<16; i++) {
chan[i].std.next();
if (chan[i].std.hadVol) {
chan[i].outVol=((chan[i].vol&0xff)*MIN(255,chan[i].std.vol<<2))>>8;
chan[i].outVol=((chan[i].vol&0xff)*chan[i].std.vol)>>6;
// Check if enabled and write volume
if (chan[i].active) {
rWrite(q1_reg_map[Q1V_VOL][i], chan[i].outVol << 4);