diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index e5c9d48c1a..9b694d57b3 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -760,6 +760,13 @@ void AudioProcessor::reset() {} template void AudioProcessor::processBypassed (AudioBuffer& buffer, MidiBuffer&) { + // If you hit this assertion then your plug-in is reporting that it introduces + // some latency, but you haven't overridden processBlockBypassed to produce + // an identical amount of latency. Without identical latency in + // processBlockBypassed a host's latency compensation could shift the audio + // passing through your bypassed plug-in forward in time. + jassert (getLatencySamples() == 0); + for (int ch = getMainBusNumInputChannels(); ch < getTotalNumOutputChannels(); ++ch) buffer.clear (ch, 0, buffer.getNumSamples()); }