JUCE  v4.2.4-0-g680d758
JUCE API
AudioProcessor::AudioBusArrangement Struct Reference

Represents a set of input and output buses for an AudioProcessor. More...

#include <juce_AudioProcessor.h>

Collaboration diagram for AudioProcessor::AudioBusArrangement:

Public Member Functions

template<typename FloatType >
AudioBuffer< FloatType > getBusBuffer (AudioBuffer< FloatType > &processBlockBuffer, bool isInput, int busIndex) const
 Returns an AudioBuffer containing a set of channel pointers for a specific bus. More...
 
int getChannelIndexInProcessBlockBuffer (bool isInput, int busIndex, int channelIndex) const noexcept
 Returns the position of a bus's channels within the processBlock buffer. More...
 
int getTotalNumInputChannels () const noexcept
 Returns the total number of channels in all the input buses. More...
 
int getTotalNumOutputChannels () const noexcept
 Returns the total number of channels in all the output buses. More...
 

Public Attributes

Array< AudioProcessorBusinputBuses
 An array containing the list of input buses that this processor supports. More...
 
Array< AudioProcessorBusoutputBuses
 An array containing the list of output buses that this processor supports. More...
 

Detailed Description

Represents a set of input and output buses for an AudioProcessor.

Member Function Documentation

template<typename FloatType >
AudioBuffer<FloatType> AudioProcessor::AudioBusArrangement::getBusBuffer ( AudioBuffer< FloatType > &  processBlockBuffer,
bool  isInput,
int  busIndex 
) const
inline

Returns an AudioBuffer containing a set of channel pointers for a specific bus.

This can be called in processBlock to get a buffer containing a sub-group of the master AudioSampleBuffer which contains all the plugin channels.

References AudioBuffer< Type >::getArrayOfWritePointers(), and AudioBuffer< Type >::getNumSamples().

int AudioProcessor::AudioBusArrangement::getChannelIndexInProcessBlockBuffer ( bool  isInput,
int  busIndex,
int  channelIndex 
) const
noexcept

Returns the position of a bus's channels within the processBlock buffer.

This can be called in processBlock to figure out which channel of the master AudioSampleBuffer maps onto a specific bus's channel.

int AudioProcessor::AudioBusArrangement::getTotalNumInputChannels ( ) const
noexcept

Returns the total number of channels in all the input buses.

Referenced by AudioProcessor::getTotalNumInputChannels().

int AudioProcessor::AudioBusArrangement::getTotalNumOutputChannels ( ) const
noexcept

Returns the total number of channels in all the output buses.

Referenced by AudioProcessor::getTotalNumOutputChannels().

Member Data Documentation

Array<AudioProcessorBus> AudioProcessor::AudioBusArrangement::inputBuses
Array<AudioProcessorBus> AudioProcessor::AudioBusArrangement::outputBuses

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