Skip to content

Commit

Permalink
Log latency
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Dec 10, 2023
1 parent ead296e commit 73d88fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/StftPitchShiftPlugin/Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ void Processor::resetCore(const State& state)
core->timbre(parameters->timbre());
core->pitch(parameters->pitch());

setLatencySamples(core->latency());
const int latency = core->latency();

LOG("Latency %d (%d ms)", latency, static_cast<int>(1e+3 * latency / samplerate));

setLatencySamples(latency);
}

juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter() { return new Processor(); }

0 comments on commit 73d88fe

Please sign in to comment.