π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Fixed priming error check.
Peter Sobota39d0b1a5e6f
diff --git a/pedalboard/plugins/MP3Compressor.h b/pedalboard/plugins/MP3Compressor.hindex 460d758..5143029 100644--- a/pedalboard/plugins/MP3Compressor.h+++ b/pedalboard/plugins/MP3Compressor.h@@ -223,7 +223,7 @@ public:delete[] silence;- if (numBytesEncoded != 0) {+ if (numBytesEncoded < 0) {throw std::runtime_error("Failed to prime MP3 encoder!");}