From: <sag...@us...> - 2012-01-02 20:16:15
|
Revision: 1152 http://modplug.svn.sourceforge.net/modplug/?rev=1152&view=rev Author: saga-games Date: 2012-01-02 20:16:08 +0000 (Mon, 02 Jan 2012) Log Message: ----------- [Fix] Revision 1149 broke IT Pan / Pitch envelopes. [Fix] VST: effSetProcessPrecision code was wrong Revision Links: -------------- http://modplug.svn.sourceforge.net/modplug/?rev=1149&view=rev Modified Paths: -------------- trunk/OpenMPT/mptrack/Vstplug.cpp trunk/OpenMPT/soundlib/Sndmix.cpp Modified: trunk/OpenMPT/mptrack/Vstplug.cpp =================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp 2012-01-02 00:14:12 UTC (rev 1151) +++ trunk/OpenMPT/mptrack/Vstplug.cpp 2012-01-02 20:16:08 UTC (rev 1152) @@ -1107,7 +1107,7 @@ // Floating point processing precision case effSetProcessPrecision: - return kVstProcessPrecision32; + return (value == kVstProcessPrecision32 ? 1 : 0); } Modified: trunk/OpenMPT/soundlib/Sndmix.cpp =================================================================== --- trunk/OpenMPT/soundlib/Sndmix.cpp 2012-01-02 00:14:12 UTC (rev 1151) +++ trunk/OpenMPT/soundlib/Sndmix.cpp 2012-01-02 20:16:08 UTC (rev 1152) @@ -1110,7 +1110,7 @@ // IT Compatibility: S79 does not disable the panning envelope, it just pauses the counter if (((pChn->PanEnv.flags & ENV_ENABLED) || ((pIns->PanEnv.dwFlags & ENV_ENABLED) && IsCompatibleMode(TRK_IMPULSETRACKER))) && (pIns->PanEnv.nNodes)) { - if(IsCompatibleMode(TRK_IMPULSETRACKER) && pChn->VolEnv.nEnvPosition == 0) + if(IsCompatibleMode(TRK_IMPULSETRACKER) && pChn->PanEnv.nEnvPosition == 0) { // If the envelope is disabled at the very same moment as it is triggered, we do not process anything. return; @@ -1169,7 +1169,7 @@ // IT Compatibility: S7B does not disable the pitch envelope, it just pauses the counter if ((pIns) && ((pChn->PitchEnv.flags & ENV_ENABLED) || ((pIns->PitchEnv.dwFlags & ENV_ENABLED) && IsCompatibleMode(TRK_IMPULSETRACKER))) && (pChn->pModInstrument->PitchEnv.nNodes)) { - if(IsCompatibleMode(TRK_IMPULSETRACKER) && pChn->VolEnv.nEnvPosition == 0) + if(IsCompatibleMode(TRK_IMPULSETRACKER) && pChn->PitchEnv.nEnvPosition == 0) { // If the envelope is disabled at the very same moment as it is triggered, we do not process anything. return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |