From 375aa3418346c1ced5f62f5bee43a4bf90eb2b52 Mon Sep 17 00:00:00 2001 From: George Reales Date: Wed, 13 May 2020 07:36:53 +0200 Subject: [PATCH] Stereo support --- OPL.jucer | 10 +++++----- Source/PluginProcessor.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OPL.jucer b/OPL.jucer index d09deb5..dbbb021 100644 --- a/OPL.jucer +++ b/OPL.jucer @@ -1,10 +1,10 @@ - + pluginVSTCategory="kPlugCategSynth" pluginChannelConfigs="{0, 2}"> diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 8c7573c..2c87406 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -818,9 +818,9 @@ void AdlibBlasterAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBu Opl->Generate(buffer.getNumSamples(), buffer.getWritePointer(0)); /// Jeff-Russ added loop to copy left channel to right channel. uncomment when building to {0,2} AU -// const float* LChanRead = buffer.getReadPointer(0, 0); -// float* RChanWrite = buffer.getWritePointer(1, 0); -// for (int i = 0; i < buffer.getNumSamples(); i++) { RChanWrite[i] = LChanRead[i]; } + const float* LChanRead = buffer.getReadPointer(0, 0); + float* RChanWrite = buffer.getWritePointer(1, 0); + for (int i = 0; i < buffer.getNumSamples(); i++) { RChanWrite[i] = LChanRead[i]; } } //==============================================================================