OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_AudioPlayHead.h>
Classes | |
struct | CurrentPositionInfo |
Public Types | |
enum | FrameRateType { fps23976 = 0 , fps24 = 1 , fps25 = 2 , fps2997 = 3 , fps30 = 4 , fps2997drop = 5 , fps30drop = 6 , fps60 = 7 , fps60drop = 8 , fpsUnknown = 99 } |
Public Member Functions | |
virtual bool | getCurrentPosition (CurrentPositionInfo &result)=0 |
virtual bool | canControlTransport () |
virtual void | transportPlay (bool shouldStartPlaying) |
virtual void | transportRecord (bool shouldStartRecording) |
virtual void | transportRewind () |
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.
Definition at line 38 of file juce_AudioPlayHead.h.
Frame rate types.
Definition at line 49 of file juce_AudioPlayHead.h.
Returns true if this object can control the transport.
Definition at line 145 of file juce_AudioPlayHead.h.
|
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.
Starts or stops the audio.
Definition at line 148 of file juce_AudioPlayHead.h.
Starts or stops recording the audio.
Definition at line 151 of file juce_AudioPlayHead.h.
Rewinds the audio.
Definition at line 154 of file juce_AudioPlayHead.h.