diff --git a/examples/audio plugin demo/Source/PluginProcessor.cpp b/examples/audio plugin demo/Source/PluginProcessor.cpp index 5b3ea00e..f4b58e58 100644 --- a/examples/audio plugin demo/Source/PluginProcessor.cpp +++ b/examples/audio plugin demo/Source/PluginProcessor.cpp @@ -151,7 +151,7 @@ void JuceDemoPluginAudioProcessor::process (AudioBuffer& buffer, applyDelay (buffer, delayBuffer); applyGain (buffer, delayBuffer); // apply our gain-change to the outgoing data.. - + DBG ("frameSize " << numSamples); // Now ask the host for the current time so we can store it to be displayed later... updateCurrentTimeInfoFromHost(); } @@ -201,7 +201,8 @@ void JuceDemoPluginAudioProcessor::updateCurrentTimeInfoFromHost() AudioPlayHead::CurrentPositionInfo newTime; if (ph->getCurrentPosition (newTime)) - { + { + DBG ("timeInSamplesDiff " << (newTime.timeInSamples - lastPosInfo.timeInSamples)); lastPosInfo = newTime; // Successfully got the current time from the host.. return; } @@ -209,7 +210,7 @@ void JuceDemoPluginAudioProcessor::updateCurrentTimeInfoFromHost() // If the host fails to provide the current time, we'll just reset our copy to a default.. lastPosInfo.resetToDefault(); -} +} //============================================================================== AudioProcessorEditor* JuceDemoPluginAudioProcessor::createEditor()