began transition rewrite

This commit is contained in:
itsmattkc
2019-02-17 01:18:03 -08:00
parent 4b5cd8bd26
commit 059e2a1fe8
23 changed files with 2446 additions and 2503 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ void LinearFadeTransition::process_audio(double timecode_start, double timecode_
qint16 samp = (qint16) (((samples[i+1] & 0xFF) << 8) | (samples[i] & 0xFF));
switch (type) {
case TA_OPENING_TRANSITION:
case kTransitionOpening:
samp *= timecode_start + (interval * i);
break;
case TA_CLOSING_TRANSITION:
case kTransitionClosing:
samp *= 1 - (timecode_start + (interval * i));
break;
}