JUCE
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
PluginBusUtilities Struct Reference

Classes

class  ScopedBusRestorer
 

Public Types

enum  { kDefaultMaxChannels = 64 }
 
typedef Array< AudioProcessor::AudioProcessorBusAudioBusArray
 

Public Member Functions

 PluginBusUtilities (AudioProcessor &plugin, bool markDiscreteLayoutsAsSupported, int maxProbeChannels=kDefaultMaxChannels)
 
void init ()
 
AudioBusArraygetFilterBus (bool inputBus) noexcept
 
const AudioBusArraygetFilterBus (bool inputBus) const noexcept
 
int getBusCount (bool inputBus) const noexcept
 
AudioChannelSet getChannelSet (bool inputBus, int bus) noexcept
 
int getNumChannels (bool inp, int bus) const noexcept
 
bool isBusEnabled (bool inputBus, int bus) const noexcept
 
bool hasInputs (int bus) const noexcept
 
bool hasOutputs (int bus) const noexcept
 
bool hasDynamicInBuses () const noexcept
 
bool hasDynamicOutBuses () const noexcept
 
int getNumEnabledBuses (bool inputBus) const noexcept
 
int findTotalNumChannels (bool isInput, int busOffset=0) const noexcept
 
int getBusIdxForChannelIdx (bool isInput, int channelIdx, int &totalChannels, int startBusIdx)
 
int getBusIdxForChannelIdx (bool isInput, int channelIdx)
 
bool busIgnoresLayout (bool inp, int bus) const noexcept
 
bool busCanBeDisabled (bool inp, int bus) const noexcept
 
bool isBusEnabledByDefault (bool inp, int bus) const noexcept
 
bool checkBusFormatsAreNotDiscrete () const
 
const AudioChannelSetgetDefaultLayoutForBus (bool isInput, int busIdx) const noexcept
 
AudioChannelSet getDefaultLayoutForChannelNumAndBus (bool isInput, int busIdx, int channelNum) const noexcept
 
int findMaxNumberOfChannelsForBus (bool isInput, int busNr, int upperlimit=std::numeric_limits< int >::max())
 
void restoreBusArrangement (const AudioProcessor::AudioBusArrangement &original) const
 
void enableAllBuses ()
 

Public Attributes

AudioProcessorprocessor
 

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum
Enumerator
kDefaultMaxChannels 

Constructor & Destructor Documentation

PluginBusUtilities::PluginBusUtilities ( AudioProcessor plugin,
bool  markDiscreteLayoutsAsSupported,
int  maxProbeChannels = kDefaultMaxChannels 
)

Member Function Documentation

void PluginBusUtilities::init ( )
AudioBusArray& PluginBusUtilities::getFilterBus ( bool  inputBus)
noexcept
const AudioBusArray& PluginBusUtilities::getFilterBus ( bool  inputBus) const
noexcept
int PluginBusUtilities::getBusCount ( bool  inputBus) const
noexcept
AudioChannelSet PluginBusUtilities::getChannelSet ( bool  inputBus,
int  bus 
)
noexcept
int PluginBusUtilities::getNumChannels ( bool  inp,
int  bus 
) const
noexcept
bool PluginBusUtilities::isBusEnabled ( bool  inputBus,
int  bus 
) const
noexcept
bool PluginBusUtilities::hasInputs ( int  bus) const
noexcept

References isBusEnabled().

bool PluginBusUtilities::hasOutputs ( int  bus) const
noexcept

References isBusEnabled().

bool PluginBusUtilities::hasDynamicInBuses ( ) const
noexcept
bool PluginBusUtilities::hasDynamicOutBuses ( ) const
noexcept
int PluginBusUtilities::getNumEnabledBuses ( bool  inputBus) const
noexcept
int PluginBusUtilities::findTotalNumChannels ( bool  isInput,
int  busOffset = 0 
) const
noexcept
int PluginBusUtilities::getBusIdxForChannelIdx ( bool  isInput,
int  channelIdx,
int &  totalChannels,
int  startBusIdx 
)

References getBusCount(), and getNumChannels().

Referenced by getBusIdxForChannelIdx().

int PluginBusUtilities::getBusIdxForChannelIdx ( bool  isInput,
int  channelIdx 
)
bool PluginBusUtilities::busIgnoresLayout ( bool  inp,
int  bus 
) const
noexcept

References isPositiveAndBelow().

bool PluginBusUtilities::busCanBeDisabled ( bool  inp,
int  bus 
) const
noexcept

References isPositiveAndBelow().

bool PluginBusUtilities::isBusEnabledByDefault ( bool  inp,
int  bus 
) const
noexcept

References isPositiveAndBelow().

bool PluginBusUtilities::checkBusFormatsAreNotDiscrete ( ) const
const AudioChannelSet& PluginBusUtilities::getDefaultLayoutForBus ( bool  isInput,
int  busIdx 
) const
noexcept

Referenced by enableAllBuses().

AudioChannelSet PluginBusUtilities::getDefaultLayoutForChannelNumAndBus ( bool  isInput,
int  busIdx,
int  channelNum 
) const
noexcept
int PluginBusUtilities::findMaxNumberOfChannelsForBus ( bool  isInput,
int  busNr,
int  upperlimit = std::numeric_limits<int>::max() 
)
void PluginBusUtilities::restoreBusArrangement ( const AudioProcessor::AudioBusArrangement original) const
void PluginBusUtilities::enableAllBuses ( )

Member Data Documentation

AudioProcessor& PluginBusUtilities::processor

The documentation for this struct was generated from the following file: