From cba6034c4402a1371ff66defee74daccc41ac052 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 11 Oct 2014 06:52:30 +0000 Subject: [PATCH] gottlieb: fixed a mistake --- src/mame/audio/gottlieb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mame/audio/gottlieb.c b/src/mame/audio/gottlieb.c index f015d775cba..f793cf09f5d 100644 --- a/src/mame/audio/gottlieb.c +++ b/src/mame/audio/gottlieb.c @@ -357,6 +357,9 @@ WRITE8_MEMBER( gottlieb_sound_r1_device::votrax_data_w ) WRITE8_MEMBER( gottlieb_sound_r1_device::speech_clock_dac_w ) { + // prevent negative clock values (and possible crash) + if (data < 0x65) data = 0x65; + if (m_votrax != NULL) { // nominal clock is 0xa0 @@ -425,7 +428,7 @@ MACHINE_CONFIG_FRAGMENT( gottlieb_sound_r1_with_votrax ) // add the VOTRAX MCFG_DEVICE_ADD("votrax", VOTRAX_SC01, 720000) - MCFG_VOTRAX_SC01_REQUEST_CB(DEVWRITELINE(DEVICE_SELF_OWNER, gottlieb_sound_r1_device, votrax_request)) + MCFG_VOTRAX_SC01_REQUEST_CB(DEVWRITELINE(DEVICE_SELF, gottlieb_sound_r1_device, votrax_request)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, DEVICE_SELF_OWNER, 0.50) MACHINE_CONFIG_END