From 8bfd8557b72bb8a393af76fc7595cb4b8667f901 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 26 Mar 2020 01:32:39 +0200 Subject: [PATCH] Build fix for updated Juce --- Source/PluginProcessor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 8d7c5a7..178ebb5 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -522,7 +522,7 @@ void PaulstretchpluginAudioProcessor::saveCaptureBuffer() { m_capture_save_state = 1; auto outstream = outfile.createOutputStream(); - auto writer = unique_from_raw(wavformat.createWriterFor(outstream, getSampleRateChecked(), + auto writer = unique_from_raw(wavformat.createWriterFor(outstream.get(), getSampleRateChecked(), inchans, 32, {}, 0)); if (writer != nullptr) { @@ -536,7 +536,7 @@ void PaulstretchpluginAudioProcessor::saveCaptureBuffer() else { Logger::writeToLog("Could not create wav writer"); - delete outstream; + //delete outstream; } } else @@ -577,7 +577,7 @@ String PaulstretchpluginAudioProcessor::offlineRender(OfflineRenderParams render auto rendertask = [sc,processor,outputfiletouse, renderpars,blocksize,numoutchans, outsr,this]() { WavAudioFormat wavformat; - FileOutputStream* outstream = outputfiletouse.createOutputStream(); + auto outstream = outputfiletouse.createOutputStream(); jassert(outstream != nullptr); int oformattouse{ 16 }; bool clipoutput{ false }; @@ -590,11 +590,11 @@ String PaulstretchpluginAudioProcessor::offlineRender(OfflineRenderParams render oformattouse = 32; clipoutput = true; } - auto writer{ unique_from_raw(wavformat.createWriterFor(outstream, outsr, numoutchans, + auto writer{ unique_from_raw(wavformat.createWriterFor(outstream.get(), outsr, numoutchans, oformattouse, StringPairArray(), 0)) }; if (writer == nullptr) { - delete outstream; + //delete outstream; jassert(false); } AudioBuffer renderbuffer{ numoutchans, blocksize };