From 9d6b393aa9cbf79395954d534c2b4e8c08f441ae Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 11 Feb 2019 16:26:39 +0000 Subject: [PATCH] Fixed a bug in AudioChannelSet::getChannelTypeFromAbbreviation() for non-typed ChannelTypes --- modules/juce_audio_basics/buffers/juce_AudioChannelSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_basics/buffers/juce_AudioChannelSet.cpp b/modules/juce_audio_basics/buffers/juce_AudioChannelSet.cpp index a86a55447f..c4794af10b 100644 --- a/modules/juce_audio_basics/buffers/juce_AudioChannelSet.cpp +++ b/modules/juce_audio_basics/buffers/juce_AudioChannelSet.cpp @@ -171,7 +171,7 @@ AudioChannelSet::ChannelType AudioChannelSet::getChannelTypeFromAbbreviation (co { if (abbr.length() > 0 && (abbr[0] >= '0' && abbr[0] <= '9')) return static_cast (static_cast (discreteChannel0) - + abbr.getIntValue() + 1); + + abbr.getIntValue() - 1); if (abbr == "L") return left; if (abbr == "R") return right;