#include <Gain.h>
|
using | Ptr = std::shared_ptr< Gain > |
|
using | Ptr = std::shared_ptr< Task > |
|
|
| Gain (juce::AudioProcessor *processor) |
| Constructor. Creates a Gain object. More...
|
|
virtual void | updateParams (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) override |
| Updates parameters from processor parameter tree. More...
|
|
virtual AudioBlock | exec (AudioBlock buffer) override |
| Apply Gain to input buffer to change volume of signal audio. More...
|
|
| Task (juce::AudioProcessor *processor) |
|
virtual bool | needsToRun () const |
| Tells caller whether block must be run for current block. More...
|
|
virtual void | updateSampleRate (double sr) |
| Update sample rate for task block. More...
|
|
|
float | gainFactor = 1.0f |
|
juce::AudioProcessor * | processor |
|
bool | mustExec = true |
|
|
double | sampleRate |
|
float | getParam (const juce::AudioProcessorValueTreeState ¶ms, const juce::String &blockId) const |
| Internal method used to get (and check) a parameter's value.
|
|
TODO: Description
Definition at line 20 of file Gain.h.
◆ Gain()
reverb::Gain::Gain |
( |
juce::AudioProcessor * |
processor | ) |
|
Constructor. Creates a Gain object.
Creates a Gain object associated to an AudioProcessor.
- Parameters
-
[in] | processor | Pointer to main processor |
Definition at line 24 of file Gain.cpp.
◆ exec()
AudioBlock reverb::Gain::exec |
( |
AudioBlock |
buffer | ) |
|
|
overridevirtual |
Apply Gain to input buffer to change volume of signal audio.
Gain to apply to audio buffer is stocked in gainFactor
- Parameters
-
[in,out] | buffer | Audio sample buffer to process |
Implements reverb::Task.
Definition at line 55 of file Gain.cpp.
◆ updateParams()
void reverb::Gain::updateParams |
( |
const juce::AudioProcessorValueTreeState & |
params, |
|
|
const juce::String & |
blockId |
|
) |
| |
|
overridevirtual |
Updates parameters from processor parameter tree.
- Parameters
-
[in] | params | Processor parameter tree |
[in] | blockId | ID of block whose paramters should be checked |
Implements reverb::Task.
Definition at line 35 of file Gain.cpp.
The documentation for this class was generated from the following files: