A processor to perform panning operations on stereo buffers. More...
#include <juce_Panner.h>
Public Types | |
using | Rule = PannerRule |
Public Member Functions | |
Panner () | |
Constructor. More... | |
void | prepare (const ProcessSpec &spec) |
Initialises the processor. More... | |
template<typename ProcessContext > | |
void | process (const ProcessContext &context) noexcept |
Processes the input and output samples supplied in the processing context. More... | |
void | reset () |
Resets the internal state variables of the processor. More... | |
void | setPan (SampleType newPan) |
Sets the current panning value, between -1 (full left) and 1 (full right). More... | |
void | setRule (Rule newRule) |
Sets the panning rule. More... | |
Private Member Functions | |
void | update () |
Private Attributes | |
Rule | currentRule = Rule::balanced |
SmoothedValue< SampleType > | leftVolume |
SampleType | pan = 0.0 |
SmoothedValue< SampleType > | rightVolume |
double | sampleRate = 44100.0 |
A processor to perform panning operations on stereo buffers.
@tags{DSP}
using juce::dsp::Panner< SampleType >::Rule = PannerRule |
juce::dsp::Panner< SampleType >::Panner | ( | ) |
Constructor.
void juce::dsp::Panner< SampleType >::prepare | ( | const ProcessSpec & | spec | ) |
Initialises the processor.
|
inlinenoexcept |
Processes the input and output samples supplied in the processing context.
References jassertquiet, juce::dsp::Panner< SampleType >::leftVolume, and juce::dsp::Panner< SampleType >::rightVolume.
void juce::dsp::Panner< SampleType >::reset | ( | ) |
Resets the internal state variables of the processor.
void juce::dsp::Panner< SampleType >::setPan | ( | SampleType | newPan | ) |
Sets the current panning value, between -1 (full left) and 1 (full right).
void juce::dsp::Panner< SampleType >::setRule | ( | Rule | newRule | ) |
Sets the panning rule.
|
private |
|
private |
|
private |
Referenced by juce::dsp::Panner< SampleType >::process().
|
private |
|
private |
Referenced by juce::dsp::Panner< SampleType >::process().
|
private |