From: <sag...@us...> - 2014-01-16 16:01:53
|
Revision: 3580 http://sourceforge.net/p/modplug/code/3580 Author: saga-games Date: 2014-01-16 16:01:46 +0000 (Thu, 16 Jan 2014) Log Message: ----------- [Fix] VSTi notes broke in r3578. Revision Links: -------------- http://sourceforge.net/p/modplug/code/3578 Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2014-01-15 22:48:37 UTC (rev 3579) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2014-01-16 16:01:46 UTC (rev 3580) @@ -733,13 +733,12 @@ } // Update Volume - if (bUpdVol) + if (bUpdVol && (!(GetType() & (MOD_TYPE_MOD | MOD_TYPE_S3M)) || (pSmp != nullptr && pSmp->pSample != nullptr))) { - if(!(GetType() & (MOD_TYPE_MOD | MOD_TYPE_S3M)) || pSmp->pSample != nullptr) + pChn->nVolume = 0; + if(pSmp) { - pChn->nVolume = 0; - if(pSmp) - pChn->nVolume = pSmp->nVolume; + pChn->nVolume = pSmp->nVolume; } else { if(pIns && pIns->nMixPlug) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |