summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/ymfm/src/ymfm_opn.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/ymfm/src/ymfm_opn.cpp')
-rw-r--r--3rdparty/ymfm/src/ymfm_opn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/3rdparty/ymfm/src/ymfm_opn.cpp b/3rdparty/ymfm/src/ymfm_opn.cpp
index 4cfb96b1d5f..00f7da46775 100644
--- a/3rdparty/ymfm/src/ymfm_opn.cpp
+++ b/3rdparty/ymfm/src/ymfm_opn.cpp
@@ -1542,9 +1542,10 @@ void ym2608::clock_fm_and_adpcm()
// update the FM content; OPNA is 13-bit with no intermediate clipping
m_fm.output(m_last_fm.clear(), 1, 32767, fmmask);
- // mix in the ADPCM
+ // mix in the ADPCM and clamp
m_adpcm_a.output(m_last_fm, 0x3f);
m_adpcm_b.output(m_last_fm, 1);
+ m_last_fm.clamp16();
}