TracktionEngine
|
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:
tracktion::engine::ExternalPlayheadSynchroniser::ExternalPlayheadSynchroniser | ( | Edit & | ) |
Constructs an ExternalPlayheadSynchroniser.
bool tracktion::engine::ExternalPlayheadSynchroniser::synchronise | ( | juce::AudioPlayHead & | ) |
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.
bool tracktion::engine::ExternalPlayheadSynchroniser::synchronise | ( | juce::AudioProcessor & | ) |
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.
juce::AudioPlayHead::CurrentPositionInfo tracktion::engine::ExternalPlayheadSynchroniser::getPositionInfo | ( | ) | const |
Returns the current position info, useful for graphical displays etc.