diff options
author | 2017-12-02 00:46:05 -0500 | |
---|---|---|
committer | 2017-12-02 00:46:05 -0500 | |
commit | 0fe9e1defe81bcc45e249daa3a3197213513d2e3 (patch) | |
tree | 885a1d22262f6fde3e16e452bb743ffafaf62858 /src/devices/sound/rf5c400.cpp | |
parent | bd7c954a3a4a7c5addc22f408ede9342f0fe796c (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.cpp | 4 |
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; } |