A subclass of AudioPlayHead can supply information about the position and status of a moving play head during audio playback. More...
#include <juce_AudioPlayHead.h>
Classes | |
struct | CurrentPositionInfo |
This structure is filled-in by the AudioPlayHead::getCurrentPosition() method. More... | |
Public Types | |
enum | FrameRateType { fps24 = 0, fps25 = 1, fps2997 = 2, fps30 = 3, fps2997drop = 4, fps30drop = 5, fps60 = 6, fps60drop = 7, fpsUnknown = 99 } |
Frame rate types. More... | |
Public Member Functions | |
virtual | ~AudioPlayHead () |
virtual bool | canControlTransport () |
Returns true if this object can control the transport. More... | |
virtual bool | getCurrentPosition (CurrentPositionInfo &result)=0 |
Fills-in the given structure with details about the transport's position at the start of the current processing block. More... | |
virtual void | transportPlay (bool shouldStartPlaying) |
Starts or stops the audio. More... | |
virtual void | transportRecord (bool shouldStartRecording) |
Starts or stops recording the audio. More... | |
virtual void | transportRewind () |
Rewinds the audio. More... | |
Protected Member Functions | |
AudioPlayHead () | |
A subclass of AudioPlayHead can supply information about the position and status of a moving play head during audio playback.
One of these can be supplied to an AudioProcessor object so that it can find out about the position of the audio that it is rendering.
|
inlineprotected |
|
inlinevirtual |
|
inlinevirtual |
Returns true if this object can control the transport.
|
pure virtual |
Fills-in the given structure with details about the transport's position at the start of the current processing block.
If this method returns false then the current play head position is not available and the given structure will be undefined.
You can ONLY call this from your processBlock() method! Calling it at other times will produce undefined behaviour, as the host may not have any context in which a time would make sense, and some hosts will almost certainly have multithreading issues if it's not called on the audio thread.
|
inlinevirtual |
Starts or stops the audio.
References juce::ignoreUnused().
|
inlinevirtual |
Starts or stops recording the audio.
References juce::ignoreUnused().
|
inlinevirtual |
Rewinds the audio.