tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_AuxReturn.cpp
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14AuxReturnPlugin::AuxReturnPlugin (PluginCreationInfo info) : Plugin (info)
15{
16 busNumber.referTo (state, IDs::busNum, getUndoManager());
17}
18
19AuxReturnPlugin::~AuxReturnPlugin()
20{
21 notifyListenersOfDeletion();
22}
23
24const char* AuxReturnPlugin::xmlTypeName = "auxreturn";
25
26juce::String AuxReturnPlugin::getName() const
27{
28 auto nm = edit.getAuxBusName (busNumber);
29
30 if (nm.isNotEmpty())
31 return "R:" + nm;
32
33 return TRANS("Aux Return") + " #" + juce::String (busNumber + 1);
34}
35
36juce::String AuxReturnPlugin::getShortName (int)
37{
38 auto nm = edit.getAuxBusName (busNumber);
39
40 if (nm.isNotEmpty())
41 return "R:" + nm;
42
43 return "Ret:" + juce::String (busNumber + 1);
44}
45
46void AuxReturnPlugin::initialise (const PluginInitialisationInfo&)
47{
48}
49
50void AuxReturnPlugin::deinitialise()
51{
52}
53
54void AuxReturnPlugin::applyToBuffer (const PluginRenderContext&)
55{
56}
57
58void AuxReturnPlugin::restorePluginStateFromValueTree (const juce::ValueTree& v)
59{
60 copyPropertiesToCachedValues (v, busNumber);
61
62 for (auto p : getAutomatableParameters())
63 p->updateFromAttachedValue();
64}
65
66}} // namespace tracktion { inline namespace engine
#define TRANS(stringLiteral)
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.