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:
parent
8c958d94a7
commit
de53a6c95f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue