From 895f33658b92e1ec2edeff4ee7f4594948e5c024 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 30 Mar 2019 14:23:51 +0900 Subject: c6280.cpp : Fix regression --- src/devices/sound/c6280.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/c6280.cpp b/src/devices/sound/c6280.cpp index 73ec3e821be..6c6f2410166 100644 --- a/src/devices/sound/c6280.cpp +++ b/src/devices/sound/c6280.cpp @@ -163,7 +163,7 @@ void c6280_device::sound_stream_update(sound_stream &stream, stream_sample_t **i uint32_t step = m_channel[ch].m_frequency ? m_channel[ch].m_frequency : 0x1000; for (int i = 0; i < samples; i += 1) { - int offset = m_channel[0].m_counter; + int offset = m_channel[ch].m_counter; m_channel[ch].m_tick--; if (m_channel[ch].m_tick <= 0) { -- cgit v1.2.3