From: <sv...@op...> - 2025-05-31 19:47:34
|
Author: sagamusix Date: Sat May 31 21:47:17 2025 New Revision: 23265 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=23265 Log: [Fix] When pausing (instead of stopping) playback in a module with synth instruments and then previewing a note in the sample or instrument editor, the synth instruments continued to play (tx squeaktoy). Modified: trunk/OpenMPT/soundlib/Sndfile.cpp Modified: trunk/OpenMPT/soundlib/Sndfile.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Sndfile.cpp Sat May 31 17:24:27 2025 (r23264) +++ trunk/OpenMPT/soundlib/Sndfile.cpp Sat May 31 21:47:17 2025 (r23265) @@ -1079,8 +1079,10 @@ for(CHANNELINDEX channel = 0; channel < m_PlayState.Chn.size(); channel++) { ModChannel &chn = m_PlayState.Chn[channel]; + chn.dwFlags.set(CHN_NOTEFADE); chn.nROfs = chn.nLOfs = 0; chn.nLength = 0; + chn.nFadeOutVol = 0; if(chn.dwFlags[CHN_ADLIB] && m_opl) m_opl->NoteCut(channel); } |