From f2511bcb67d8f562617ee9fc5ce80a4f877dc9d3 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 25 Feb 2021 14:11:38 -0500 Subject: [PATCH] x1_010: Clamp output samples to within range --- src/devices/sound/x1_010.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/devices/sound/x1_010.cpp b/src/devices/sound/x1_010.cpp index b54fa6bd6cf..4ad9993c120 100644 --- a/src/devices/sound/x1_010.cpp +++ b/src/devices/sound/x1_010.cpp @@ -215,13 +215,13 @@ void x1_010_device::sound_stream_update(sound_stream &stream, std::vectorstatus & 1) != 0) // Key On { - auto &bufL = outputs[0]; - auto &bufR = outputs[1]; const int div = (reg->status & 0x80) ? 1 : 0; if ((reg->status & 2) == 0) // PCM sampling { @@ -295,4 +295,10 @@ void x1_010_device::sound_stream_update(sound_stream &stream, std::vector