From 2e04f510b2555b965fae7b101505970026c7150b Mon Sep 17 00:00:00 2001 From: szkkng Date: Thu, 6 Jul 2023 13:03:07 +0900 Subject: [PATCH] Fix buggy sound on fl studio --- Source/PluginProcessor.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index d9f1676..2aa7673 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -254,16 +254,11 @@ bool JRGranularAudioProcessor::isBusesLayoutSupported (const BusesLayout& layout void JRGranularAudioProcessor::processBlock (juce::AudioBuffer& buffer, juce::MidiBuffer& midiMessages) { juce::ignoreUnused (midiMessages); - auto bufferSize = buffer.getNumSamples(); - - rnboObject.prepareToProcess (getSampleRate(), - static_cast (bufferSize)); - rnboObject.process (buffer.getArrayOfWritePointers(), static_cast (buffer.getNumChannels()), buffer.getArrayOfWritePointers(), static_cast (buffer.getNumChannels()), - static_cast (bufferSize)); + static_cast (buffer.getNumSamples())); } //==============================================================================