From: <sag...@us...> - 2011-09-20 18:26:06
|
Revision: 1049 http://modplug.svn.sourceforge.net/modplug/?rev=1049&view=rev Author: saga-games Date: 2011-09-20 18:26:00 +0000 (Tue, 20 Sep 2011) Log Message: ----------- [Fix] Volume swing range in non-compatible mode broke in the previous revisions. Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2011-09-20 01:00:58 UTC (rev 1048) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2011-09-20 18:26:00 UTC (rev 1049) @@ -960,7 +960,7 @@ if (pIns->nVolSwing) { const double delta = 2 * (((double) rand()) / RAND_MAX) - 1; - pChn->nVolSwing = (LONG)std::floor(delta * (IsCompatibleMode(TRK_IMPULSETRACKER) ? pChn->nInsVol : (pChn->nVolume + 1)) * pIns->nVolSwing / 100.0); + pChn->nVolSwing = (LONG)std::floor(delta * (IsCompatibleMode(TRK_IMPULSETRACKER) ? pChn->nInsVol : ((pChn->nVolume + 1) / 2)) * pIns->nVolSwing / 100.0); } // Pan Swing if (pIns->nPanSwing) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |