OpenShot Audio Library | OpenShotAudio 0.4.0
|
#include <juce_AudioPlayHead.h>
Describes the time at the start of the current audio callback.
Not all hosts and plugin formats can provide all of the possible time information, so most of the getter functions in this class return an Optional that will only be engaged if the host provides the corresponding information. As a plugin developer, you should code defensively so that the plugin behaves sensibly even when the host fails to provide timing information.
A default-constructed instance of this class will return nullopt from all functions that return an Optional.
Definition at line 317 of file juce_AudioPlayHead.h.
The number of bars since the beginning of the timeline.
This value isn't available in all hosts or in all plugin formats.
Definition at line 354 of file juce_AudioPlayHead.h.
Returns the bpm, if available.
Definition at line 333 of file juce_AudioPlayHead.h.
For timecode, the position of the start of the timeline, in seconds from 00:00:00:00.
Definition at line 384 of file juce_AudioPlayHead.h.
The video frame rate, if available.
Definition at line 372 of file juce_AudioPlayHead.h.
Get the host's callback time in nanoseconds, if available.
Definition at line 390 of file juce_AudioPlayHead.h.
|
inline |
True if the transport is currently looping.
Definition at line 411 of file juce_AudioPlayHead.h.
|
inline |
True if the transport is currently playing.
Definition at line 396 of file juce_AudioPlayHead.h.
|
inline |
True if the transport is currently recording.
(When isRecording is true, then isPlaying will also be true).
Definition at line 405 of file juce_AudioPlayHead.h.
|
inline |
Returns host loop points, if available.
Definition at line 345 of file juce_AudioPlayHead.h.
The current play position, in units of quarter-notes.
Definition at line 378 of file juce_AudioPlayHead.h.
The position of the start of the last bar, in units of quarter-notes.
This is the time from the start of the timeline to the start of the current bar, in ppq units.
Note - this value may be unavailable on some hosts, e.g. Pro-Tools.
Definition at line 366 of file juce_AudioPlayHead.h.
Returns the number of samples that have elapsed.
Definition at line 321 of file juce_AudioPlayHead.h.
Referenced by juce::ARAPlaybackRegionReader::readSamples().
Returns the number of seconds that have elapsed.
Definition at line 327 of file juce_AudioPlayHead.h.
|
inline |
Returns the time signature, if available.
Definition at line 339 of file juce_AudioPlayHead.h.
|
inlinenoexcept |
Definition at line 439 of file juce_AudioPlayHead.h.
|
inlinenoexcept |
Definition at line 416 of file juce_AudioPlayHead.h.
Definition at line 357 of file juce_AudioPlayHead.h.
Definition at line 336 of file juce_AudioPlayHead.h.
|
inline |
Definition at line 387 of file juce_AudioPlayHead.h.
Definition at line 375 of file juce_AudioPlayHead.h.
Definition at line 393 of file juce_AudioPlayHead.h.
Definition at line 414 of file juce_AudioPlayHead.h.
Definition at line 399 of file juce_AudioPlayHead.h.
Referenced by juce::ARAPlaybackRegionReader::ARAPlaybackRegionReader().
Definition at line 408 of file juce_AudioPlayHead.h.
|
inline |
Definition at line 348 of file juce_AudioPlayHead.h.
Definition at line 381 of file juce_AudioPlayHead.h.
|
inline |
Definition at line 369 of file juce_AudioPlayHead.h.
|
inline |
Definition at line 324 of file juce_AudioPlayHead.h.
Referenced by juce::ARAPlaybackRegionReader::readSamples().
|
inline |
Definition at line 330 of file juce_AudioPlayHead.h.
Referenced by juce::ARAPlaybackRegionReader::readSamples().
|
inline |
Definition at line 342 of file juce_AudioPlayHead.h.