Add this interface if your class is aware of a time continuum. More...
#include <foleys_TimeCodeAware.h>
Inheritance diagram for TimeCodeAware:Classes | |
| struct | Listener |
| Use a TimecodeListener to be notified, when the visual frame changes. More... | |
Public Member Functions | |
| TimeCodeAware ()=default | |
| virtual | ~TimeCodeAware ()=default |
| virtual double | getCurrentTimeInSeconds () const =0 |
| Return the clip's read position in seconds. | |
| void | addTimecodeListener (Listener *listener) |
| Register a TimecodeListener to be notified, when the visual frame changes. | |
| void | removeTimecodeListener (Listener *listener) |
| Unregister a TimecodeListener. | |
Protected Member Functions | |
| void | sendTimecode (int64_t count, double seconds, juce::NotificationType nt) |
| Subclasses can call this to notify displays, that the time code has changed, e.g. | |
Add this interface if your class is aware of a time continuum.
It can notify observers when the time advances, usually when the visual frame changes.
|
default |
|
virtualdefault |
|
pure virtual |
Return the clip's read position in seconds.
Implemented in AudioClip, ClipDescriptor, ComposedClip, ImageClip, MovieClip, and AudioStrip::ThumbnailJob.
| void addTimecodeListener | ( | Listener * | listener | ) |
Register a TimecodeListener to be notified, when the visual frame changes.
| void removeTimecodeListener | ( | Listener * | listener | ) |
Unregister a TimecodeListener.
|
protected |
Subclasses can call this to notify displays, that the time code has changed, e.g.
to display a new frame
References TimeCodeAware::Listener::timecodeChanged().
Referenced by ClipDescriptor::triggerTimecodeUpdate().