From 60feee01f4cafecfc6f0c65650cc98f48766c81c Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 10 Oct 2023 03:37:02 +0200 Subject: [PATCH] More OPL4 fixes. --- src/sound/snd_opl_ymfm.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sound/snd_opl_ymfm.cpp b/src/sound/snd_opl_ymfm.cpp index 28ed1d736..e6ba8206f 100644 --- a/src/sound/snd_opl_ymfm.cpp +++ b/src/sound/snd_opl_ymfm.cpp @@ -152,11 +152,11 @@ public: m_chip.generate(&m_output); if ((m_type == FM_YMF278B) && (sizeof(m_output.data) > (4 * sizeof(int32_t)))) { if (ChipType::OUTPUTS == 1) { - *data++ += m_output.data[4]; - *data++ += m_output.data[4]; + *data++ = m_output.data[4]; + *data++ = m_output.data[4]; } else { - *data++ += m_output.data[4]; - *data++ += m_output.data[5]; + *data++ = m_output.data[4]; + *data++ = m_output.data[5]; } } else if (ChipType::OUTPUTS == 1) { *data++ = m_output.data[0]; @@ -177,11 +177,11 @@ public: m_chip.generate(&m_output); if ((m_type == FM_YMF278B) && (sizeof(m_output.data) > (4 * sizeof(int32_t)))) { if (ChipType::OUTPUTS == 1) { - m_samples[0] += m_output.data[4]; - m_samples[1] += m_output.data[4]; + m_samples[0] = m_output.data[4]; + m_samples[1] = m_output.data[4]; } else { - m_samples[0] += m_output.data[4]; - m_samples[1] += m_output.data[5]; + m_samples[0] = m_output.data[4]; + m_samples[1] = m_output.data[5]; } } else if (ChipType::OUTPUTS == 1) { m_samples[0] = m_output.data[0];