namco_snd antikaboom

This commit is contained in:
dinkc64 2017-04-29 04:13:28 +00:00
parent 79ff8969b4
commit 6fc4d7622f
1 changed files with 8 additions and 4 deletions

View File

@ -167,11 +167,15 @@ void NamcoSoundUpdate(INT16* buffer, INT32 length)
INT32 cnt;
if (voice->noise_state) {
*(mix++) = BURN_SND_CLIP(*mix + noise_data);
*(mix++) = BURN_SND_CLIP(*mix + noise_data);
*mix = BURN_SND_CLIP(*mix + noise_data);
mix++;
*mix = BURN_SND_CLIP(*mix + noise_data);
mix++;
} else {
*(mix++) = BURN_SND_CLIP(*mix - noise_data);
*(mix++) = BURN_SND_CLIP(*mix - noise_data);
*mix = BURN_SND_CLIP(*mix - noise_data);
mix++;
*mix = BURN_SND_CLIP(*mix - noise_data);
mix++;
}
if (hold)