summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2019-10-12 09:48:44 +0200
committerGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2019-10-12 09:48:44 +0200
commit8792426f66ec2b2f274166e59441807bee50d55c (patch) (github)
treed789086b4cbe7fc0842cf26446d9c9fe4afd237c
parent44dbe7bce30f409f3f25e15a7723022759ca3a02 (diff)
downloadmame-8792426f66ec2b2f274166e59441807bee50d55c.tar.bz2
mame-8792426f66ec2b2f274166e59441807bee50d55c.zip
devices/sound/rf5c68.cpp: fixed MT04531 (nw)
-rw-r--r--src/devices/sound/rf5c68.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/sound/rf5c68.cpp b/src/devices/sound/rf5c68.cpp
index 9ec522b7d92..2567adfe004 100644
--- a/src/devices/sound/rf5c68.cpp
+++ b/src/devices/sound/rf5c68.cpp
@@ -63,6 +63,10 @@ void rf5c68_device::device_start()
m_cache = space().cache<0, 0, ENDIANNESS_LITTLE>();
m_sample_end_cb.bind_relative_to(*owner());
+ // needs to be initialized to 0xff, otherwise f1en has bad sound (MT04531)
+ for (int i = 0; i < 0x10000; i++)
+ m_data->write_byte(i, 0xff);
+
/* allocate the stream */
m_stream = stream_alloc(0, 2, clock() / 384);