11namespace tracktion {
inline namespace engine
24 static const char* getPluginName() {
return NEEDS_TRANS(
"Level Meter"); }
25 static const char* xmlTypeName;
28 juce::String getPluginType()
override {
return xmlTypeName; }
29 juce::String getShortName (
int)
override {
return "Meter"; }
31 bool canBeDisabled()
override {
return false; }
32 bool needsConstantBufferSize()
override {
return false; }
42 void timerCallback()
override;
52 int controllerTrack = -1;
Monitors the levels of buffers that are passed in, and keeps peak values, overloads,...
void deinitialise() override
Called after play stops to release resources.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
void initialiseWithoutStopping(const PluginInitialisationInfo &) override
Tells the plugin that the audio graph has changed but the plugin isn't being re-initialised - i....
juce::String getTooltip() override
default returns the name, others can return special stuff if needed
void applyToBuffer(const PluginRenderContext &) override
Process the next block of data.
int getNumOutputChannelsGivenInputs(int numInputChannels) override
This must return the number of output channels that the plugin will produce, given a number of input ...
juce::String getName() const override
The name of the type, e.g.
bool shoulMeasureCpuUsage() const noexcept final
Plugins can return false if they want to avoid the overhead of measuring the CPU usage.
#define TRANS(stringLiteral)
#define NEEDS_TRANS(stringLiteral)
constexpr Type jmin(Type a, Type b)
Passed into Plugins when they are being initialised, to give them useful contextual information that ...
The context passed to plugin render methods to provide it with buffers to fill.