comparison jssplr.c @ 169:13f27b9882bc

Backed out changeset 21f54947eb18. No, it isn't. :(
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 06 Oct 2012 09:09:08 +0300
parents 21f54947eb18
children fb95285c3ed9
comparison
equal deleted inserted replaced
168:21f54947eb18 169:13f27b9882bc
238 // Process the autovibrato 238 // Process the autovibrato
239 /* 239 /*
240 FIXME fix me FIX me!!! todo. 240 FIXME fix me FIX me!!! todo.
241 */ 241 */
242 242
243 // Process the instrument volume fadeout
244 if (chn->iCKeyOff && chn->iCFadeOutVol > 0 && inst->fadeOut > 0)
245 {
246 int tmp = chn->iCFadeOutVol - inst->fadeOut;
247 if (tmp < 0) tmp = 0;
248 chn->iCFadeOutVol = tmp;
249
250 JMPSETNDFLAGS(cdfNewVolume);
251 }
252
253 // Process the volume envelope 243 // Process the volume envelope
254 if (inst->volumeEnv.flags & jenvfUsed) 244 if (inst->volumeEnv.flags & jenvfUsed)
255 { 245 {
246 // Process the instrument volume fadeout
247 if (chn->iCKeyOff && chn->iCFadeOutVol > 0 && inst->fadeOut > 0)
248 {
249 int tmp = chn->iCFadeOutVol - inst->fadeOut;
250 if (tmp < 0) tmp = 0;
251 chn->iCFadeOutVol = tmp;
252
253 JMPSETNDFLAGS(cdfNewVolume);
254 }
255
256 if (chn->iCVolEnv_Exec) 256 if (chn->iCVolEnv_Exec)
257 { 257 {
258 // Execute the volume envelope 258 // Execute the volume envelope
259 jmpExecEnvelope(&(inst->volumeEnv), 259 jmpExecEnvelope(&(inst->volumeEnv),
260 chn->iCKeyOff, 260 chn->iCKeyOff,