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

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_ExternalPlayheadSynchroniser.h
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
14//==============================================================================
17
20
21
22//==============================================================================
23//==============================================================================
38{
39public:
42
48
54
57
58private:
59 Edit& edit;
61 mutable juce::SpinLock positionInfoLock;
62};
63
64}} // namespace tracktion { inline namespace engine
The Tracktion Edit class!
An ExternalPlayheadSynchroniser is used to synchronise the internal Edit's playhead with an AudioProc...
juce::AudioPlayHead::CurrentPositionInfo getPositionInfo() const
Returns the current position info, useful for graphical displays etc.
bool synchronise(juce::AudioPlayHead &)
Synchronises the Edit's playback position with an AudioPlayHead if possible.
void synchroniseEditPosition(Edit &edit, const juce::AudioPlayHead::CurrentPositionInfo &info)
Syncs an Edit's transport and tempo sequence to a juce AudioPlayHead.
juce::AudioPlayHead::CurrentPositionInfo getCurrentPositionInfo(Edit &edit)
Converts an Edit's internal transport information to a juce::AudioPlayHead::CurrentPositionInfo.