From 7056128bbce2d703c73fbb93f505a5057cb823d6 Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 5 May 2016 11:55:06 +0100 Subject: [PATCH] Add intersect method to AudioChannelSet --- .../juce_audio_processors/processors/juce_AudioChannelSet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_audio_processors/processors/juce_AudioChannelSet.h b/modules/juce_audio_processors/processors/juce_AudioChannelSet.h index 3bfc2c626a..6b569b86ed 100644 --- a/modules/juce_audio_processors/processors/juce_AudioChannelSet.h +++ b/modules/juce_audio_processors/processors/juce_AudioChannelSet.h @@ -195,6 +195,9 @@ public: /** Returns if this is a channel layout made-up of discrete channels. */ bool isDiscreteLayout() const noexcept; + /** Intersect two channel layouts. */ + void intersect (const AudioChannelSet& other) { channels &= other.channels; } + //============================================================================== bool operator== (const AudioChannelSet&) const noexcept; bool operator!= (const AudioChannelSet&) const noexcept;