Skip to content

Commit 990e0ff

Browse files
committed
Fix for clip effect pitch shift latencies being wrong in some situations
1 parent 65d3132 commit 990e0ff

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
@@ -1201,7 +1201,7 @@ juce::ReferenceCountedObjectPtr<ClipEffect::ClipEffectRenderJob> PitchShiftEffec
12011201
// Use 1.0 second of preroll to be safe. We can't ask the plugin since it
12021202
// may not be initialized yet
12031203
job->initialise (std::make_unique<PluginNode> (std::move (node), plugin,
1204-
sourceFile.getInfo().sampleRate, (int) job->blockSize, nullptr,
1204+
job->processState.sampleRate, (int) job->blockSize, nullptr,
12051205
job->processState, true, false, -1),
12061206
1.0);
12071207

0 commit comments

Comments
 (0)