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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_MasterTrack.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
15 : Track (e, v, true)
16{
17}
18
20{
22
23 pluginList.initialise (edit.getMasterPluginList().state);
24}
25
27{
28 notifyListenersOfDeletion();
29}
30
31bool MasterTrack::isMasterTrack() const { return true; }
32juce::String MasterTrack::getName() const { return TRANS("Master"); }
34bool MasterTrack::canContainPlugin (Plugin* p) const { return p->canBeAddedToMaster(); }
35
36}} // namespace tracktion { inline namespace engine
The Tracktion Edit class!
PluginList & getMasterPluginList() const noexcept
Returns the master PluginList.
bool canContainPlugin(Plugin *) const override
Returns true if this track can contain a specific Plugin.
void initialise() override
Initialises the Track.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
bool isMasterTrack() const override
Returns true if this is a MasterTrack.
MasterTrack(Edit &, const juce::ValueTree &)
Create the MasterTrack for an Edit with a given state.
Base class for tracks which contain clips and plugins and can be added to Edit[s].
PluginList pluginList
The Track's PluginList.
virtual void initialise()
Initialises the Track.
#define TRANS(stringLiteral)