diff options
author | Aaron Giles <aaron@aarongiles.com> | 2021-05-22 11:20:43 -0700 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2021-05-22 11:20:43 -0700 |
commit | 3ccdbfc3b57ae76cdd338fc5ba9f75ca909606ad (patch) | |
tree | 9843031cf34c56f4c594951174027c5b64d444d3 | |
parent | c7f6282bd2917fadf7fcfecadb6d49c93848a86f (diff) |
ymfm: Add missing clamp in YM2608
-rw-r--r-- | 3rdparty/ymfm/src/ymfm_opn.cpp | 3 |
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(); } |