From: <sag...@us...> - 2011-10-30 12:40:13
|
Revision: 1127 http://modplug.svn.sourceforge.net/modplug/?rev=1127&view=rev Author: saga-games Date: 2011-10-30 12:40:06 +0000 (Sun, 30 Oct 2011) Log Message: ----------- [Fix] Resonant filters broke in rev.1124. Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2011-10-29 19:03:03 UTC (rev 1126) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2011-10-30 12:40:06 UTC (rev 1127) @@ -1037,8 +1037,16 @@ // Setup Initial Filter for this note if (pIns) { - if (pIns->IsResonanceEnabled()) { pChn->nResonance = pIns->GetResonance(); bFlt = true; } - if (pIns->IsResonanceEnabled()) { pChn->nCutOff = pIns->GetCutoff(); bFlt = true; } + if (pIns->IsResonanceEnabled()) + { + pChn->nResonance = pIns->GetResonance(); + bFlt = true; + } + if (pIns->IsCutoffEnabled()) + { + pChn->nCutOff = pIns->GetCutoff(); + bFlt = true; + } if (bFlt && (pIns->nFilterMode != FLTMODE_UNCHANGED)) { pChn->nFilterMode = pIns->nFilterMode; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |