132 void resetToDefault();
152 virtual void transportPlay (
bool shouldStartPlaying) { ignoreUnused (shouldStartPlaying); }
155 virtual void transportRecord (
bool shouldStartRecording) { ignoreUnused (shouldStartRecording); }
A subclass of AudioPlayHead can supply information about the position and status of a moving play hea...
virtual bool canControlTransport()
Returns true if this object can control the transport.
FrameRateType
Frame rate types.
virtual void transportPlay(bool shouldStartPlaying)
Starts or stops the audio.
virtual void transportRecord(bool shouldStartRecording)
Starts or stops recording the audio.
virtual bool getCurrentPosition(CurrentPositionInfo &result)=0
Fills-in the given structure with details about the transport's position at the start of the current ...
virtual void transportRewind()
Rewinds the audio.
#define JUCE_API
This macro is added to all JUCE public class declarations.
This structure is filled-in by the AudioPlayHead::getCurrentPosition() method.
int timeSigDenominator
Time signature denominator, e.g.
double ppqPositionOfLastBarStart
The position of the start of the last bar, in units of quarter-notes.
double ppqLoopEnd
The current cycle end position in units of quarter-notes.
int timeSigNumerator
Time signature numerator, e.g.
double ppqLoopStart
The current cycle start position in units of quarter-notes.
bool isPlaying
True if the transport is currently playing.
double ppqPosition
The current play position, in units of quarter-notes.
FrameRateType frameRate
The video frame rate, if applicable.
double bpm
The tempo in BPM.
bool isLooping
True if the transport is currently looping.
int64 timeInSamples
The current play position, in samples from the start of the timeline.
double editOriginTime
For timecode, the position of the start of the timeline, in seconds from 00:00:00:00.
double timeInSeconds
The current play position, in seconds from the start of the timeline.
bool isRecording
True if the transport is currently recording.