Oscilloscope audio processor.
More...
#include <PluginProcessor.h>
Oscilloscope audio processor.
This class handles all the audio I/O operations, initialization and state retrieval.
Definition at line 24 of file PluginProcessor.h.
◆ OscilloscopeAudioProcessor()
| OscilloscopeAudioProcessor::OscilloscopeAudioProcessor |
( |
| ) |
|
◆ ~OscilloscopeAudioProcessor()
| OscilloscopeAudioProcessor::~OscilloscopeAudioProcessor |
( |
| ) |
|
|
override |
◆ acceptsMidi()
| bool OscilloscopeAudioProcessor::acceptsMidi |
( |
| ) |
const |
|
override |
Returns whether the plugin accepts midi.
- Returns
- true if the plugin accepts midi.
-
false otherwise.
Definition at line 83 of file PluginProcessor.cpp.
◆ changeProgramName()
| void OscilloscopeAudioProcessor::changeProgramName |
( |
int |
index, |
|
|
const juce::String & |
newName |
|
) |
| |
|
override |
◆ createEditor()
| juce::AudioProcessorEditor * OscilloscopeAudioProcessor::createEditor |
( |
| ) |
|
|
override |
◆ getAudioBufferQueue()
◆ getCurrentProgram()
| int OscilloscopeAudioProcessor::getCurrentProgram |
( |
| ) |
|
|
override |
◆ getEditorHeight()
| int OscilloscopeAudioProcessor::getEditorHeight |
( |
| ) |
|
◆ getEditorRefreshRate()
| int OscilloscopeAudioProcessor::getEditorRefreshRate |
( |
| ) |
|
Get the stored refresh rate.
- Returns
- Stored editors' refresh rate.
Definition at line 264 of file PluginProcessor.cpp.
◆ getEditorWidth()
| int OscilloscopeAudioProcessor::getEditorWidth |
( |
| ) |
|
◆ getName()
| const juce::String OscilloscopeAudioProcessor::getName |
( |
| ) |
const |
|
override |
◆ getNumPrograms()
| int OscilloscopeAudioProcessor::getNumPrograms |
( |
| ) |
|
|
override |
◆ getProgramName()
| const juce::String OscilloscopeAudioProcessor::getProgramName |
( |
int |
index | ) |
|
|
override |
◆ getSampleRate()
| int OscilloscopeAudioProcessor::getSampleRate |
( |
| ) |
|
◆ getStateInformation()
| void OscilloscopeAudioProcessor::getStateInformation |
( |
juce::MemoryBlock & |
destData | ) |
|
|
override |
Get the State Information object
- Parameters
-
| destData | memory block where to store information. |
Definition at line 195 of file PluginProcessor.cpp.
◆ getTailLengthSeconds()
| double OscilloscopeAudioProcessor::getTailLengthSeconds |
( |
| ) |
const |
|
override |
◆ getTreeState()
| juce::AudioProcessorValueTreeState * OscilloscopeAudioProcessor::getTreeState |
( |
| ) |
|
Get the TreeState object
- Returns
- juce::AudioProcessorValueTreeState* TreeState.
Definition at line 231 of file PluginProcessor.cpp.
◆ hasEditor()
| bool OscilloscopeAudioProcessor::hasEditor |
( |
| ) |
const |
|
override |
Return whether the plugin has an editor.
- Returns
- true if the plugin has an editor.
-
false otherwise.
Definition at line 186 of file PluginProcessor.cpp.
◆ isBusesLayoutSupported()
| bool OscilloscopeAudioProcessor::isBusesLayoutSupported |
( |
const BusesLayout & |
layouts | ) |
const |
|
override |
◆ isMidiEffect()
| bool OscilloscopeAudioProcessor::isMidiEffect |
( |
| ) |
const |
|
override |
Return whether the plugin is a midi effect.
- Returns
- true if the plugin is a midi effect.
-
false otherwise.
Definition at line 99 of file PluginProcessor.cpp.
◆ prepareToPlay()
| void OscilloscopeAudioProcessor::prepareToPlay |
( |
double |
sampleRate, |
|
|
int |
samplesPerBlock |
|
) |
| |
|
override |
Use this method as the place to do any pre-playback initialisation.
- Parameters
-
| sampleRate | Sample rate. |
| samplesPerBlock | Samples per block. |
Definition at line 127 of file PluginProcessor.cpp.
◆ processBlock()
| void OscilloscopeAudioProcessor::processBlock |
( |
juce::AudioBuffer< float > & |
buffer, |
|
|
juce::MidiBuffer & |
midiMessages |
|
) |
| |
|
override |
◆ producesMidi()
| bool OscilloscopeAudioProcessor::producesMidi |
( |
| ) |
const |
|
override |
Returns whether the plugin produces midi.
- Returns
- true if the plugin produces midi.
-
false otherwise.
Definition at line 91 of file PluginProcessor.cpp.
◆ releaseResources()
| void OscilloscopeAudioProcessor::releaseResources |
( |
| ) |
|
|
override |
When playback stops, you can use this as an opportunity to free up any spare memory, etc.
Definition at line 138 of file PluginProcessor.cpp.
◆ setCurrentProgram()
| void OscilloscopeAudioProcessor::setCurrentProgram |
( |
int |
index | ) |
|
|
override |
◆ setStateInformation()
| void OscilloscopeAudioProcessor::setStateInformation |
( |
const void * |
data, |
|
|
int |
sizeInBytes |
|
) |
| |
|
override |
Set the State Information object
- Parameters
-
| data | memory block where to read information. |
| sizeInBytes | size in bytes. |
Definition at line 205 of file PluginProcessor.cpp.
◆ storeEditorSize()
| void OscilloscopeAudioProcessor::storeEditorSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Store editor size in order to be able to recover it from the
- Parameters
-
| processorTreeState | ValueTree. This is done in order to make the editor size persistent. |
| width | Editor width. |
| height | Editor height. |
Definition at line 254 of file PluginProcessor.cpp.
The documentation for this class was generated from the following files: