diff options
author | cracyc <cracyc@users.noreply.github.com> | 2021-06-23 20:17:09 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2021-06-23 20:17:09 -0500 |
commit | 5eab37cbef3f016e444d903eb47fa5784927b71e (patch) | |
tree | 01eccfb885d41632200f5ae1653c3ef489bba81c | |
parent | 3f5cec732b9b248d481ce238af58ff7e8aa45c1e (diff) |
vis: try again to fix the sound
-rw-r--r-- | src/mame/drivers/vis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/vis.cpp b/src/mame/drivers/vis.cpp index ecf65fb91b4..ab16dcf2f3e 100644 --- a/src/mame/drivers/vis.cpp +++ b/src/mame/drivers/vis.cpp @@ -76,13 +76,13 @@ void vis_audio_device::dack16_w(int line, uint16_t data) { m_sample[m_samples++] = data; m_curcount++; - if((m_samples >= 2) || ((m_mode & 0x08) != 0x08)) + if((m_samples >= 2) || !(m_mode & 0x8)) m_isa->drq7_w(CLEAR_LINE); } void vis_audio_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { - if(((m_samples < 2) && ((m_mode & 0x08) == 0x08)) || !m_samples) + if(((m_samples < 2) && (m_mode & 8)) || !m_samples) return; switch(m_mode & 0x88) { @@ -111,7 +111,7 @@ void vis_audio_device::device_timer(emu_timer &timer, device_timer_id id, int pa break; } - if(m_sample_byte >= 2) + if(m_sample_byte >= (m_mode & 8 ? 4 : 2)) { m_sample_byte = 0; m_samples = 0; |