61 |
int Samples = (itKillEvent) ? RTMath::Min(itKillEvent->FragmentPos(), pEngine->MaxFadeOutPos) : (int) TotalSamples; |
int Samples = (itKillEvent) ? RTMath::Min(itKillEvent->FragmentPos(), pEngine->MaxFadeOutPos) : (int) TotalSamples; |
62 |
|
|
63 |
int iSample = TriggerDelay; |
int iSample = TriggerDelay; |
64 |
|
|
65 |
|
#if DEVMODE |
66 |
|
if (TriggerDelay > TotalSamples) { // FIXME: should be removed before the final release (purpose: just a sanity check for debugging) |
67 |
|
dmsg(1,("EGADSR: ERROR, TriggerDelay > Totalsamples\n")); |
68 |
|
int* i = NULL; |
69 |
|
(*i)++; // force a segfault |
70 |
|
} |
71 |
|
#endif // DEVMODE |
72 |
|
|
73 |
while (iSample < TotalSamples) { |
while (iSample < TotalSamples) { |
74 |
|
|
75 |
// if the voice was killed in this fragment and we already processed the time before this kill event |
// if the voice was killed in this fragment and we already processed the time before this kill event |
191 |
} |
} |
192 |
} |
} |
193 |
|
|
194 |
if (itKillEvent && Stage != stage_end) { |
#if DEVMODE |
195 |
dmsg(1,("EGADSR: VOICE KILLING NOT COMPLETED !!!\n")); |
if (itKillEvent && Stage != stage_end) { // FIXME: should be removed before the final release (purpose: just a sanity check for debugging) |
196 |
|
dmsg(1,("EGADSR: ERROR, voice killing not completed !!!\n")); |
197 |
dmsg(1,("EGADSR: Stage=%d,iSample=%d,Samples=%d, TotalSamples=%d, MaxFadoutPos=%d\n",Stage,iSample,Samples,TotalSamples,pEngine->MaxFadeOutPos)); |
dmsg(1,("EGADSR: Stage=%d,iSample=%d,Samples=%d, TotalSamples=%d, MaxFadoutPos=%d\n",Stage,iSample,Samples,TotalSamples,pEngine->MaxFadeOutPos)); |
198 |
} |
} |
199 |
|
#endif // DEVMODE |
200 |
} |
} |
201 |
|
|
202 |
/** |
/** |