redclash: add minimal beeper frequency

This commit is contained in:
hap 2022-09-04 18:39:49 +02:00
parent c496bc69a4
commit 5beaab0f3b

View File

@ -514,7 +514,7 @@ void redclash_state::beeper_w(u8 data)
{ {
// beeper frequency (0xff is off), preliminary // beeper frequency (0xff is off), preliminary
bool on = m_sound_on && (data != 0xff); bool on = m_sound_on && (data != 0xff);
m_beep_clock->set_period(attotime::from_hz(on ? data * 8 : 0)); m_beep_clock->set_period(attotime::from_hz(on ? (data * 8 + 32) : 0));
} }