1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Fixed a bug in AudioChannelSet::getChannelTypeFromAbbreviation() for non-typed ChannelTypes

This commit is contained in:
ed 2019-02-11 16:26:39 +00:00
parent 083078034a
commit 9d6b393aa9

View file

@ -171,7 +171,7 @@ AudioChannelSet::ChannelType AudioChannelSet::getChannelTypeFromAbbreviation (co
{
if (abbr.length() > 0 && (abbr[0] >= '0' && abbr[0] <= '9'))
return static_cast<AudioChannelSet::ChannelType> (static_cast<int> (discreteChannel0)
+ abbr.getIntValue() + 1);
+ abbr.getIntValue() - 1);
if (abbr == "L") return left;
if (abbr == "R") return right;