π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
static_cast
Peter Sobot62cf42556d7a
diff --git a/pedalboard/ExternalPlugin.h b/pedalboard/ExternalPlugin.hindex 7690857..6394dee 100644--- a/pedalboard/ExternalPlugin.h+++ b/pedalboard/ExternalPlugin.h@@ -621,8 +621,8 @@ public:// only tell Pedalboard to use the last _n_ samples.long usableSamplesProduced =samplesProvided - pluginInstance->getLatencySamples();- return (int)std::min(usableSamplesProduced,- (long)outputBlock.getNumSamples());+ return static_cast<int>(+ std::min(usableSamplesProduced, (long)outputBlock.getNumSamples()));}return 0;