summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <robbbert@users.noreply.github.com>2014-10-11 06:52:30 +0000
committer Robbbert <robbbert@users.noreply.github.com>2014-10-11 06:52:30 +0000
commitcba6034c4402a1371ff66defee74daccc41ac052 (patch)
treef29e8dc591fbe6a542d392ac6a507c6c972e9dc2
parent966747038e2fa8b411f2133011a0bf0f06ee4aef (diff)
gottlieb: fixed a mistake
-rw-r--r--src/mame/audio/gottlieb.c5
1 files changed, 4 insertions, 1 deletions
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