コード例 #1
0
ファイル: apollo_kbd.cpp プロジェクト: bradhugh/mame
void apollo_kbd_device::beeper::on()
{
	if (keyboard_has_beeper())
	{
		m_beeper->set_state(1);
		m_timer->adjust( attotime::from_msec(10), 0, attotime::zero);
	}
}
コード例 #2
0
void apollo_kbd_device::beeper::on()
{
	if (keyboard_has_beeper())
	{
		beep_set_frequency(m_beeper, 1000);
		beep_set_state(m_beeper, 1);
		m_timer->adjust( attotime::from_msec(10), 0, attotime::zero);
	}
}