|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
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 type is deprecated; prefer PositionInfo instead. More... | |
| class | FrameRate |
| More descriptive frame rate type. More... | |
| struct | LoopPoints |
| Holds the begin and end points of a looped region. More... | |
| class | PositionInfo |
| Describes the time at the start of the current audio callback. More... | |
| struct | TimeSignature |
| Describes a musical time signature. More... | |
Public Types | |
| enum | FrameRateType { fps23976 , fps24 , fps25 , fps2997 , fps30 , fps2997drop , fps30drop , fps60 , fps60drop , fpsUnknown } |
| Frame rate types. More... | |
Public Member Functions | |
| bool | getCurrentPosition (CurrentPositionInfo &result) |
| Deprecated, use getPosition() instead. | |
| virtual Optional< PositionInfo > | getPosition () const =0 |
| Fetches details about the transport's position at the start of the current processing block. | |
| virtual bool | canControlTransport () |
| Returns true if this object can control the transport. | |
| virtual void | transportPlay (bool shouldStartPlaying) |
| Starts or stops the audio. | |
| virtual void | transportRecord (bool shouldStartRecording) |
| Starts or stops recording the audio. | |
| virtual void | transportRewind () |
| Rewinds the audio. | |
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.
@tags{Audio}
Definition at line 38 of file juce_AudioPlayHead.h.
Frame rate types.
Definition at line 49 of file juce_AudioPlayHead.h.
|
virtual |
Returns true if this object can control the transport.
Definition at line 26 of file juce_AudioPlayHead.cpp.
| bool juce::AudioPlayHead::getCurrentPosition | ( | CurrentPositionInfo & | result | ) |
Deprecated, use getPosition() instead.
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.
Definition at line 516 of file juce_AudioPlayHead.h.
|
pure virtual |
Fetches details about the transport's position at the start of the current processing block.
If this method returns nullopt then the current play head position is not available.
A non-null return value just indicates that the host was able to provide some* relevant timing information. Individual PositionInfo getters may still return nullopt.
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 27 of file juce_AudioPlayHead.cpp.
Starts or stops recording the audio.
Definition at line 28 of file juce_AudioPlayHead.cpp.
|
virtual |
Rewinds the audio.
Definition at line 29 of file juce_AudioPlayHead.cpp.