This class is a Synchronizer implementation using JACK Transport.
More...
#include <JackSynchronizer.h>
|
| JackSynchronizer (JackDevice *device) |
| Creates a new JackSynchronizer.
|
|
virtual void | seek (std::shared_ptr< IHandle > handle, double time) |
| Sets the playback position of a handle and the synchronizer to a specific time.
|
|
virtual double | getPosition (std::shared_ptr< IHandle > handle) |
| Retrieves the position of the synchronizer.
|
|
virtual void | play () |
| Starts the synchronizer playback.
|
|
virtual void | stop () |
| Stops the synchronizer playback.
|
|
virtual void | setSyncCallback (syncFunction function, void *data) |
| Sets the callback function that is called when a synchronization event happens.
|
|
virtual int | isPlaying () |
| Retrieves whether the synchronizer is playing back.
|
|
virtual | ~ISynchronizer () |
| Destroys the synchronizer.
|
|
|
typedef void(* | syncFunction) (void *, int, float) |
| The syncFunction is called when a synchronization event happens.
|
|
This class is a Synchronizer implementation using JACK Transport.
◆ JackSynchronizer()
JackSynchronizer::JackSynchronizer |
( |
JackDevice * | device | ) |
|
Creates a new JackSynchronizer.
- Parameters
-
device | The device that should be synchronized. |
◆ getPosition()
virtual double JackSynchronizer::getPosition |
( |
std::shared_ptr< IHandle > | handle | ) |
|
|
virtual |
Retrieves the position of the synchronizer.
- Parameters
-
handle | The handle which is synchronized. |
- Returns
- The position in seconds.
Implements ISynchronizer.
◆ isPlaying()
virtual int JackSynchronizer::isPlaying |
( |
| ) |
|
|
virtual |
Retrieves whether the synchronizer is playing back.
- Returns
- Whether the synchronizer plays back.
Implements ISynchronizer.
◆ play()
virtual void JackSynchronizer::play |
( |
| ) |
|
|
virtual |
◆ seek()
virtual void JackSynchronizer::seek |
( |
std::shared_ptr< IHandle > | handle, |
|
|
double | time ) |
|
virtual |
Sets the playback position of a handle and the synchronizer to a specific time.
- Parameters
-
handle | The handle that should be synchronized/seeked. |
time | The absolute time to synchronize to. |
Implements ISynchronizer.
◆ setSyncCallback()
virtual void JackSynchronizer::setSyncCallback |
( |
syncFunction | function, |
|
|
void * | data ) |
|
virtual |
Sets the callback function that is called when a synchronization event happens.
- Parameters
-
function | The function to be called. |
data | User data to be passed to the callback. |
Implements ISynchronizer.
◆ stop()
virtual void JackSynchronizer::stop |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: