0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2025-01-05 15:11:18 +00:00

Reduced instrument volume by 2/3 to help avoid clipping

This commit is contained in:
Andrew Alderwick 2021-04-25 18:05:37 +01:00
parent 8c958d94a7
commit de53a6c95f

View file

@ -54,8 +54,8 @@ apu_render(Apu *c, Sint16 *sample, Sint16 *end)
c->i %= c->len;
}
s = (Sint8)(c->addr[c->i]) * envelope(c, c->age++);
*sample++ += s * c->volume_l / 0x80;
*sample++ += s * c->volume_r / 0x80;
*sample++ += s * c->volume_l / 0x180;
*sample++ += s * c->volume_r / 0x180;
}
}