From 241f3e61f9a1cfc05418f1ecd749a44d9b36b91f Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 15 May 2015 03:45:18 +0200 Subject: [PATCH] forgot a shift --- src/emu/cpu/e0c6200/e0c6s46.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/cpu/e0c6200/e0c6s46.c b/src/emu/cpu/e0c6200/e0c6s46.c index 914add409c9..73057330ff7 100644 --- a/src/emu/cpu/e0c6200/e0c6s46.c +++ b/src/emu/cpu/e0c6200/e0c6s46.c @@ -508,7 +508,7 @@ void e0c6s46_device::schedule_buzzer() // pulse width differs per frequency selection int mul = (m_bz_freq & 4) ? 1 : 2; int high = ((m_bz_freq & 2) ? 12 : 8) - m_bz_duty_ratio; - int low = (16 + (m_bz_freq & 3)) - high; + int low = (16 + (m_bz_freq << 2 & 0xc)) - high; m_buzzer_handle->adjust(attotime::from_ticks(m_bz_pulse ? high : low, mul * unscaled_clock())); }