mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
forgot a shift
This commit is contained in:
parent
14eae1ec9b
commit
241f3e61f9
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user