Skip to content

Commit 59a3b72

Browse files
authored
ClipFX: Update playHead method to use preroll time to avoid dropping the start of the file
1 parent a6bab1c commit 59a3b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/tracktion_engine/model/clips/tracktion_ClipEffects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ struct AudioNodeRenderJob : public ClipEffect::ClipEffectRenderJob
494494

495495
totalSamples = juce::roundToInt (streamRange.getLength().inSeconds() * sampleRate);
496496

497-
processStateToUse.playHeadState.playHead.playSyncedToRange ({ 0, totalSamples });
497+
processStateToUse.playHeadState.playHead.play ({ -toSamples (prerollTimeRounded, sampleRate), totalSamples }, false);
498498

499499
nodePlayer = std::make_unique<TracktionNodePlayer> (std::move (nodeToUse), processStateToUse, sampleRate, (int) blockSize,
500500
getPoolCreatorFunction (ThreadPoolStrategy::realTime));

0 commit comments

Comments
 (0)