JUCE
|
Classes | |
class | ScopedBusRestorer |
Public Types | |
enum | { kDefaultMaxChannels = 64 } |
typedef Array< AudioProcessor::AudioProcessorBus > | AudioBusArray |
Public Member Functions | |
PluginBusUtilities (AudioProcessor &plugin, bool markDiscreteLayoutsAsSupported, int maxProbeChannels=kDefaultMaxChannels) | |
void | init () |
AudioBusArray & | getFilterBus (bool inputBus) noexcept |
const AudioBusArray & | getFilterBus (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 AudioChannelSet & | getDefaultLayoutForBus (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 | |
AudioProcessor & | processor |
PluginBusUtilities::PluginBusUtilities | ( | AudioProcessor & | plugin, |
bool | markDiscreteLayoutsAsSupported, | ||
int | maxProbeChannels = kDefaultMaxChannels |
||
) |
void PluginBusUtilities::init | ( | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
References AudioProcessor::AudioProcessorBus::channels, getBusCount(), getFilterBus(), Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::getReference(), isPositiveAndBelow(), and AudioChannelSet::size().
Referenced by AudioUnitHelpers::ChannelRemapper::get(), AudioUnitHelpers::getAUChannelInfo(), getBusIdxForChannelIdx(), and isBusEnabled().
|
noexcept |
References getNumChannels().
Referenced by getNumEnabledBuses(), hasInputs(), and hasOutputs().
|
noexcept |
References isBusEnabled().
|
noexcept |
References isBusEnabled().
|
noexcept |
|
noexcept |
|
noexcept |
References getBusCount(), and isBusEnabled().
Referenced by AudioUnitHelpers::getAUChannelInfo().
|
noexcept |
References AudioProcessor::AudioProcessorBus::channels, getFilterBus(), Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::getReference(), AudioChannelSet::size(), and Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::size().
Referenced by AudioUnitHelpers::ChannelRemapper::get().
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 | ||
) |
References getBusIdxForChannelIdx().
|
noexcept |
References isPositiveAndBelow().
|
noexcept |
References isPositiveAndBelow().
|
noexcept |
References isPositiveAndBelow().
bool PluginBusUtilities::checkBusFormatsAreNotDiscrete | ( | ) | const |
|
noexcept |
Referenced by enableAllBuses().
|
noexcept |
References AudioChannelSet::disabled(), AudioChannelSet::discreteChannels(), getBusCount(), Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::getReference(), AudioChannelSet::isDiscreteLayout(), processor, AudioProcessor::setPreferredBusArrangement(), AudioChannelSet::size(), and Array< ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize >::size().
Referenced by AudioUnitHelpers::getAUChannelInfo().
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 | ( | ) |
AudioProcessor& PluginBusUtilities::processor |