summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/rf5c400.cpp
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2017-12-02 00:46:05 -0500
committer arbee <rb6502@users.noreply.github.com>2017-12-02 00:46:05 -0500
commit0fe9e1defe81bcc45e249daa3a3197213513d2e3 (patch)
tree885a1d22262f6fde3e16e452bb743ffafaf62858 /src/devices/sound/rf5c400.cpp
parentbd7c954a3a4a7c5addc22f408ede9342f0fe796c (diff)
twinkle: many fixes to waveram banking + DMA. Most sets are semi-playable now. [R. Belmont, Sarah Purohit]
Diffstat (limited to 'src/devices/sound/rf5c400.cpp')
-rw-r--r--src/devices/sound/rf5c400.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/rf5c400.cpp b/src/devices/sound/rf5c400.cpp
index 39440c66991..4fc6a364c7a 100644
--- a/src/devices/sound/rf5c400.cpp
+++ b/src/devices/sound/rf5c400.cpp
@@ -181,7 +181,7 @@ void rf5c400_device::device_start()
m_stream = stream_alloc(0, 2, clock() / 384);
- m_rommask = m_rom.length() - 1;
+ m_rommask = (m_rom.length()/2) - 1;
}
//-------------------------------------------------
@@ -258,7 +258,7 @@ void rf5c400_device::sound_stream_update(sound_stream &stream, stream_sample_t *
{
env_phase = PHASE_DECAY;
env_level = 1.0;
- if (channel->decay & 0x0080)
+ if ((channel->decay & 0x0080) || (channel->decay == 0x100))
{
env_step = 0.0;
}