|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
An ExternalPlayheadSynchroniser is used to synchronise the internal Edit's playhead with an AudioProcessor, for use in plugins. More...
#include "tracktion_ExternalPlayheadSynchroniser.h"
Public Member Functions | |
| ExternalPlayheadSynchroniser (Edit &) | |
| Constructs an ExternalPlayheadSynchroniser. | |
| bool | synchronise (juce::AudioPlayHead &) |
| Synchronises the Edit's playback position with an AudioPlayHead if possible. | |
| bool | synchronise (juce::AudioProcessor &) |
| Synchronises the Edit's playback position with the AudioProcessor's playhead if possible. | |
| juce::AudioPlayHead::CurrentPositionInfo | getPositionInfo () const |
| Returns the current position info, useful for graphical displays etc. | |
An ExternalPlayheadSynchroniser is used to synchronise the internal Edit's playhead with an AudioProcessor, for use in plugins.
Just create one when you create your Edit and repeatedly call the synchronise method in your process block like this:
Definition at line 37 of file tracktion_ExternalPlayheadSynchroniser.h.
| tracktion::engine::ExternalPlayheadSynchroniser::ExternalPlayheadSynchroniser | ( | Edit & | e | ) |
Constructs an ExternalPlayheadSynchroniser.
Definition at line 131 of file tracktion_ExternalPlayheadSynchroniser.cpp.
| juce::AudioPlayHead::CurrentPositionInfo tracktion::engine::ExternalPlayheadSynchroniser::getPositionInfo | ( | ) | const |
Returns the current position info, useful for graphical displays etc.
Definition at line 208 of file tracktion_ExternalPlayheadSynchroniser.cpp.
| bool tracktion::engine::ExternalPlayheadSynchroniser::synchronise | ( | juce::AudioPlayHead & | playhead | ) |
Synchronises the Edit's playback position with an AudioPlayHead if possible.
Generally you'd call this at the start of your plugin's processBlock method.
Definition at line 137 of file tracktion_ExternalPlayheadSynchroniser.cpp.
| bool tracktion::engine::ExternalPlayheadSynchroniser::synchronise | ( | juce::AudioProcessor & | processor | ) |
Synchronises the Edit's playback position with the AudioProcessor's playhead if possible.
Generally you'd call this at the start of your plugin's processBlock method.
Definition at line 200 of file tracktion_ExternalPlayheadSynchroniser.cpp.