Skip to content

Commit

Permalink
Fix buggy sound on fl studio
Browse files Browse the repository at this point in the history
  • Loading branch information
szkkng committed Jul 6, 2023
1 parent 6b25de0 commit 2e04f51
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,11 @@ bool JRGranularAudioProcessor::isBusesLayoutSupported (const BusesLayout& layout
void JRGranularAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBuffer& midiMessages)
{
juce::ignoreUnused (midiMessages);
auto bufferSize = buffer.getNumSamples();

rnboObject.prepareToProcess (getSampleRate(),
static_cast<size_t> (bufferSize));

rnboObject.process (buffer.getArrayOfWritePointers(),
static_cast<RNBO::Index> (buffer.getNumChannels()),
buffer.getArrayOfWritePointers(),
static_cast<RNBO::Index> (buffer.getNumChannels()),
static_cast<RNBO::Index> (bufferSize));
static_cast<RNBO::Index> (buffer.getNumSamples()));
}

//==============================================================================
Expand Down

0 comments on commit 2e04f51

Please sign in to comment.