From: <sag...@us...> - 2011-09-11 18:52:27
|
Revision: 1033 http://modplug.svn.sourceforge.net/modplug/?rev=1033&view=rev Author: saga-games Date: 2011-09-11 18:52:20 +0000 (Sun, 11 Sep 2011) Log Message: ----------- [Fix] VST: JUCE-based plugins should not crash anymore when switching between orders when module playback is stopped. [Mod] OpenMPT: Version is now 1.20.00.21 Modified Paths: -------------- trunk/OpenMPT/mptrack/Vstplug.cpp trunk/OpenMPT/mptrack/version.h Modified: trunk/OpenMPT/mptrack/Vstplug.cpp =================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp 2011-09-11 17:31:27 UTC (rev 1032) +++ trunk/OpenMPT/mptrack/Vstplug.cpp 2011-09-11 18:52:20 UTC (rev 1033) @@ -1369,7 +1369,7 @@ //rewbs.VSTcompliance //Store a pointer so we can get the CVstPlugin object from the basic VST effect object. - m_pEffect->resvd1=ToVstPtr(this); + m_pEffect->resvd1 = ToVstPtr(this); //rewbs.plugDocAware m_pSndFile = pSndFile; m_pModDoc = pSndFile->GetpModDoc(); @@ -2419,6 +2419,13 @@ //if (IsBypassed()) // return; + // The JUCE framework doesn't like processing while being suspended. + const bool wasSuspended = !IsResumed(); + if(wasSuspended) + { + Resume(); + } + do { overflow=false; @@ -2459,6 +2466,11 @@ // If we had hit an overflow, we need to loop around and start again. } while (overflow); + if(wasSuspended) + { + Suspend(); + } + } //end rewbs.VSTiNoteHoldonStopFix Modified: trunk/OpenMPT/mptrack/version.h =================================================================== --- trunk/OpenMPT/mptrack/version.h 2011-09-11 17:31:27 UTC (rev 1032) +++ trunk/OpenMPT/mptrack/version.h 2011-09-11 18:52:20 UTC (rev 1033) @@ -15,7 +15,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 20 #define VER_MINOR 00 -#define VER_MINORMINOR 20 +#define VER_MINORMINOR 21 //Creates version number from version parts that appears in version string. //For example MAKE_VERSION_NUMERIC(1,17,02,28) gives version number of This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |