Video display and composing engine for JUCE
Loading...
Searching...
No Matches
TimeCodeAware Class Referenceabstract

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TimeCodeAware()

TimeCodeAware ( )
default

◆ ~TimeCodeAware()

virtual ~TimeCodeAware ( )
virtualdefault

Member Function Documentation

◆ getCurrentTimeInSeconds()

virtual double getCurrentTimeInSeconds ( ) const
pure virtual

Return the clip's read position in seconds.

Implemented in AudioClip, ClipDescriptor, ComposedClip, ImageClip, MovieClip, and AudioStrip::ThumbnailJob.

◆ addTimecodeListener()

void addTimecodeListener ( Listener listener)

Register a TimecodeListener to be notified, when the visual frame changes.

◆ removeTimecodeListener()

void removeTimecodeListener ( Listener listener)

Unregister a TimecodeListener.

◆ sendTimecode()

void sendTimecode ( int64_t  count,
double  seconds,
juce::NotificationType  nt 
)
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().


The documentation for this class was generated from the following files: