Mix sound sources in 32-bit buffer, then clip to 16-bit for output. Fixes overflow in some situations, eg MegaRace on SB16.
This commit is contained in:
parent
9a5ac02902
commit
d2b6ea7fa3
15 changed files with 60 additions and 37 deletions
|
|
@ -651,7 +651,7 @@ void adgold_timer_poll(void *p)
|
|||
}
|
||||
}
|
||||
|
||||
static void adgold_get_buffer(int16_t *buffer, int len, void *p)
|
||||
static void adgold_get_buffer(int32_t *buffer, int len, void *p)
|
||||
{
|
||||
adgold_t *adgold = (adgold_t *)p;
|
||||
int16_t adgold_buffer[len*2];
|
||||
|
|
|
|||
Loading…
Reference in a new issue