forgot a shift

This commit is contained in:
hap 2015-05-15 03:45:18 +02:00
parent 14eae1ec9b
commit 241f3e61f9

View File

@ -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()));
}