OpenShot Library | libopenshot-audio 0.2.0
|
Public Member Functions | |
MultiTimerCallback (const int tid, MultiTimer &mt) noexcept | |
void | timerCallback () override |
The user-defined callback routine that actually gets called periodically. | |
![]() | |
virtual | ~Timer () |
Destructor. | |
void | startTimer (int intervalInMilliseconds) noexcept |
Starts the timer and sets the length of interval required. | |
void | startTimerHz (int timerFrequencyHz) noexcept |
Starts the timer with an interval specified in Hertz. | |
void | stopTimer () noexcept |
Stops the timer. | |
bool | isTimerRunning () const noexcept |
Returns true if the timer is currently running. | |
int | getTimerInterval () const noexcept |
Returns the timer's interval. | |
Public Attributes | |
MultiTimer & | owner |
const int | timerID |
Additional Inherited Members | |
![]() | |
static void JUCE_CALLTYPE | callAfterDelay (int milliseconds, std::function< void()> functionToCall) |
Invokes a lambda after a given number of milliseconds. | |
static void JUCE_CALLTYPE | callPendingTimersSynchronously () |
For internal use only: invokes any timers that need callbacks. | |
![]() | |
Timer () noexcept | |
Creates a Timer. | |
Timer (const Timer &) noexcept | |
Creates a copy of another timer. | |
Definition at line 26 of file juce_MultiTimer.cpp.
|
inlinenoexcept |
Definition at line 28 of file juce_MultiTimer.cpp.
|
inlineoverridevirtual |
The user-defined callback routine that actually gets called periodically.
It's perfectly ok to call startTimer() or stopTimer() from within this callback to change the subsequent intervals.
Implements juce::Timer.
Definition at line 33 of file juce_MultiTimer.cpp.
References juce::MultiTimer::timerCallback().
MultiTimer& juce::MultiTimerCallback::owner |
Definition at line 38 of file juce_MultiTimer.cpp.
Definition at line 39 of file juce_MultiTimer.cpp.