From aea7a67d3ea6a972426f88a60414afdd045c6f9a Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 12 Jan 2023 17:45:33 -0500 Subject: [PATCH] Namco WSG: noise in per-chan osc for real? --- src/engine/platform/sound/namco.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/platform/sound/namco.cpp b/src/engine/platform/sound/namco.cpp index 473a80c6e..ee4c1b16a 100644 --- a/src/engine/platform/sound/namco.cpp +++ b/src/engine/platform/sound/namco.cpp @@ -659,11 +659,13 @@ void namco_audio_device::sound_stream_update(short** outputs, int len) { lmix[i]+=l_noise_data; rmix[i]+=r_noise_data; + voice->last_out=(l_noise_data+r_noise_data)>>1; } else { lmix[i]+=-l_noise_data; rmix[i]+=-r_noise_data; + voice->last_out=-((l_noise_data+r_noise_data)>>1); } if (hold)