11namespace tracktion {
inline namespace engine
21 void setGainDb (
float newDb);
22 float getGainDb()
const {
return volumeFaderPositionToDB (gain->getCurrentValue()); }
24 void setMute (
bool m);
27 int getBusNumber()
const {
return busNumber; }
34 static const char* getPluginName() {
return NEEDS_TRANS(
"Aux Send"); }
35 static const char* xmlTypeName;
38 juce::String getShortName (
int suggestedMaxLength)
override;
39 juce::String getPluginType()
override {
return xmlTypeName; }
49 bool takesAudioInput()
override {
return true; }
50 bool canBeAddedToClip()
override {
return false; }
51 bool canBeAddedToRack()
override {
return false; }
52 bool needsConstantBufferSize()
override {
return true; }
60 AutomatableParameter::Ptr gain;
66 float lastGain = 1.0f;
69 Track* ownerTrack =
nullptr;
void deinitialise() override
Called after play stops to release resources.
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 getSelectableDescription() override
Subclasses must return a description of what they are.
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.
The Tracktion Edit class!
#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.