177 |
pEngine->pSynthesisParameters[ModulationDestination][iSample++] *= Level; |
pEngine->pSynthesisParameters[ModulationDestination][iSample++] *= Level; |
178 |
} |
} |
179 |
if (Level <= FadeOutCoeff) Stage = stage_end; |
if (Level <= FadeOutCoeff) Stage = stage_end; |
180 |
break; |
} //Fall through here instead of breaking otherwise we can get back into stage_fadeout and loop forever! |
|
} |
|
181 |
case stage_end: { |
case stage_end: { |
182 |
while (iSample < TotalSamples) { |
while (iSample < TotalSamples) { |
183 |
pEngine->pSynthesisParameters[ModulationDestination][iSample++] = 0.0f; |
pEngine->pSynthesisParameters[ModulationDestination][iSample++] = 0.0f; |