From ba403758e91724da01982034cf58ea15b810a251 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 6 Oct 2022 17:25:44 +0200 Subject: berzerk: mute when writing 0 volume --- src/mame/stern/berzerk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/stern/berzerk.cpp b/src/mame/stern/berzerk.cpp index 207719c6331..8a4453292d6 100644 --- a/src/mame/stern/berzerk.cpp +++ b/src/mame/stern/berzerk.cpp @@ -600,7 +600,7 @@ void berzerk_state::audio_w(offs_t offset, uint8_t data) { /* volume */ m_s14001a->force_update(); - m_s14001a->set_output_gain(0, ((data >> 3 & 0xf) + 1) / 16.0); + m_s14001a->set_output_gain(0, (data >> 3 & 7) / 7.0); /* clock control - the first LS161 divides the clock by 9 to 16, the 2nd by 8, giving a final clock from 19.5kHz to 34.7kHz */ -- cgit v1.2.3