mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
ymfm: Add missing clamp in YM2608
This commit is contained in:
parent
c7f6282bd2
commit
3ccdbfc3b5
3
3rdparty/ymfm/src/ymfm_opn.cpp
vendored
3
3rdparty/ymfm/src/ymfm_opn.cpp
vendored
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user