tracktion-engine
3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_engine
plugins
internal
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
11
namespace
tracktion
{
inline
namespace
engine
12
{
13
14
AuxReturnPlugin::AuxReturnPlugin (PluginCreationInfo info) : Plugin (info)
15
{
16
busNumber.referTo (state, IDs::busNum, getUndoManager());
17
}
18
19
AuxReturnPlugin::~AuxReturnPlugin()
20
{
21
notifyListenersOfDeletion();
22
}
23
24
const
char
* AuxReturnPlugin::xmlTypeName =
"auxreturn"
;
25
26
juce::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
36
juce::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
46
void
AuxReturnPlugin::initialise (
const
PluginInitialisationInfo
&)
47
{
48
}
49
50
void
AuxReturnPlugin::deinitialise()
51
{
52
}
53
54
void
AuxReturnPlugin::applyToBuffer (
const
PluginRenderContext
&)
55
{
56
}
57
58
void
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
juce::String
TRANS
#define TRANS(stringLiteral)
tracktion::engine::PluginInitialisationInfo
Passed into Plugins when they are being initialised, to give them useful contextual information that ...
Definition
tracktion_Plugin.h:36
tracktion
Definition
tracktion_AudioReader.h:23
juce::ValueTree
tracktion::engine::PluginRenderContext
The context passed to plugin render methods to provide it with buffers to fill.
Definition
tracktion_Plugin.h:48
« « « Anklang Documentation