From: <sv...@op...> - 2024-06-27 16:37:39
|
Author: sagamusix Date: Thu Jun 27 18:37:31 2024 New Revision: 21086 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21086 Log: [Ref] Silence warning. Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp Wed Jun 26 23:38:43 2024 (r21085) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp Thu Jun 27 18:37:31 2024 (r21086) @@ -2552,7 +2552,7 @@ const uint32 tickCount = m_PlayState.m_nTickCount % (m_PlayState.m_nMusicSpeed + m_PlayState.m_nFrameDelay); uint32 instr = chn.rowCommand.instr; ModCommand::VOLCMD volcmd = chn.rowCommand.volcmd; - uint32 vol = chn.rowCommand.vol; + ModCommand::VOL vol = chn.rowCommand.vol; ModCommand::COMMAND cmd = chn.rowCommand.command; uint32 param = chn.rowCommand.param; bool bPorta = chn.rowCommand.IsTonePortamento(); @@ -3176,7 +3176,7 @@ { // IT Compatibility: Effects in the volume column don't have an unified memory. // Test case: VolColMemory.it - if(vol) chn.nOldVolParam = static_cast<ModCommand::PARAM>(vol); else vol = chn.nOldVolParam; + if(vol) chn.nOldVolParam = vol; else vol = chn.nOldVolParam; } switch(volcmd) @@ -3192,7 +3192,7 @@ break; } else { - chn.nOldVolParam = static_cast<ModCommand::PARAM>(vol); + chn.nOldVolParam = vol; } VolumeSlide(chn, static_cast<ModCommand::PARAM>(volcmd == VOLCMD_VOLSLIDEUP ? (vol << 4) : vol)); break; @@ -3204,7 +3204,7 @@ { // IT Compatibility: Volume column volume slides have their own memory // Test case: VolColMemory.it - FineVolumeUp(chn, static_cast<ModCommand::PARAM>(vol), m_playBehaviour[kITVolColMemory]); + FineVolumeUp(chn, vol, m_playBehaviour[kITVolColMemory]); } break; @@ -3215,7 +3215,7 @@ { // IT Compatibility: Volume column volume slides have their own memory // Test case: VolColMemory.it - FineVolumeDown(chn, static_cast<ModCommand::PARAM>(vol), m_playBehaviour[kITVolColMemory]); + FineVolumeDown(chn, vol, m_playBehaviour[kITVolColMemory]); } break; @@ -3232,7 +3232,7 @@ break; case VOLCMD_PANSLIDELEFT: - PanningSlide(chn, static_cast<ModCommand::PARAM>(vol), !m_playBehaviour[kFT2VolColMemory]); + PanningSlide(chn, vol, !m_playBehaviour[kFT2VolColMemory]); break; case VOLCMD_PANSLIDERIGHT: |