Reduced instrument volume by 2/3 to help avoid clipping
This commit is contained in:
parent
8c958d94a7
commit
de53a6c95f
|
@ -54,8 +54,8 @@ apu_render(Apu *c, Sint16 *sample, Sint16 *end)
|
||||||
c->i %= c->len;
|
c->i %= c->len;
|
||||||
}
|
}
|
||||||
s = (Sint8)(c->addr[c->i]) * envelope(c, c->age++);
|
s = (Sint8)(c->addr[c->i]) * envelope(c, c->age++);
|
||||||
*sample++ += s * c->volume_l / 0x80;
|
*sample++ += s * c->volume_l / 0x180;
|
||||||
*sample++ += s * c->volume_r / 0x80;
|
*sample++ += s * c->volume_r / 0x180;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue