From 2c2732816f15b304ae3e7e8478ab74578d70e2c6 Mon Sep 17 00:00:00 2001 From: asb2m10 Date: Sat, 20 Jul 2024 12:53:21 -0400 Subject: [PATCH] Check output channel in case of mono fixes #435 --- Source/PluginProcessor.cpp | 5 +++-- libs/JUCE | 2 +- libs/MTS-ESP | 2 +- libs/tuning-library | 2 +- libs/vst3sdk | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 1264ad7c..c7ca4ba1 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -301,8 +301,9 @@ void DexedAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& mi vuSignal = 0; } - // DX7 is a mono synth - buffer.copyFrom(1, 0, channelData, numSamples, 1); + // DX7 is a mono synth, but copy it to the right channel is available + if ( buffer.getNumChannels() > 1 ) + buffer.copyFrom(1, 0, channelData, numSamples, 1); } diff --git a/libs/JUCE b/libs/JUCE index ae514483..d054f0d1 160000 --- a/libs/JUCE +++ b/libs/JUCE @@ -1 +1 @@ -Subproject commit ae5144833e852815d61642af87c69b9db44984f7 +Subproject commit d054f0d14dcac387aebda44ce5d792b5e7a625b3 diff --git a/libs/MTS-ESP b/libs/MTS-ESP index 803c3aab..514ed958 160000 --- a/libs/MTS-ESP +++ b/libs/MTS-ESP @@ -1 +1 @@ -Subproject commit 803c3aab3d43dfaea430a1084ab31b606f5cd72c +Subproject commit 514ed958b38e5ab501999f902a2427ebe6232a78 diff --git a/libs/tuning-library b/libs/tuning-library index 3bbe9514..601c0eab 160000 --- a/libs/tuning-library +++ b/libs/tuning-library @@ -1 +1 @@ -Subproject commit 3bbe9514816e1ae674c207b09e9f20eea4df372a +Subproject commit 601c0eabff31fff8a543b49d3e48073f338f413c diff --git a/libs/vst3sdk b/libs/vst3sdk index 56e4b2a6..e9895dc9 160000 --- a/libs/vst3sdk +++ b/libs/vst3sdk @@ -1 +1 @@ -Subproject commit 56e4b2a644be164c5d324e8bc9de55b964b0f102 +Subproject commit e9895dc9ef20bedd93a0fde5ad664bc8b56d4338