From 8792426f66ec2b2f274166e59441807bee50d55c Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sat, 12 Oct 2019 09:48:44 +0200 Subject: devices/sound/rf5c68.cpp: fixed MT04531 (nw) --- src/devices/sound/rf5c68.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3