|
Audaspace 1.6.0
A high level audio library.
|
This class enables global synchronization of several audio applications if supported. More...
#include <ISynchronizer.h>

Public Types | |
| typedef void(* | syncFunction) (void *, int, float) |
| The syncFunction is called when a synchronization event happens. | |
Public Member Functions | |
| virtual | ~ISynchronizer () |
| Destroys the synchronizer. | |
| virtual void | seek (std::shared_ptr< IHandle > handle, double time)=0 |
| Sets the playback position of a handle and the synchronizer to a specific time. | |
| virtual double | getPosition (std::shared_ptr< IHandle > handle)=0 |
| Retrieves the position of the synchronizer. | |
| virtual void | play ()=0 |
| Starts the synchronizer playback. | |
| virtual void | stop ()=0 |
| Stops the synchronizer playback. | |
| virtual void | setSyncCallback (syncFunction function, void *data)=0 |
| Sets the callback function that is called when a synchronization event happens. | |
| virtual int | isPlaying ()=0 |
| Retrieves whether the synchronizer is playing back. | |
This class enables global synchronization of several audio applications if supported.
JACK for example supports synchronization through JACK Transport.
| typedef void(* ISynchronizer::syncFunction) (void *, int, float) |
The syncFunction is called when a synchronization event happens.
The function awaits three parameters. The first one is a user defined pointer, the second informs about whether playback is on and the third is the current playback time in seconds.
|
pure virtual |
Retrieves the position of the synchronizer.
| handle | The handle which is synchronized. |
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.
|
pure virtual |
Retrieves whether the synchronizer is playing back.
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.
|
pure virtual |
Starts the synchronizer playback.
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.
|
pure virtual |
Sets the playback position of a handle and the synchronizer to a specific time.
| handle | The handle that should be synchronized/seeked. |
| time | The absolute time to synchronize to. |
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.
|
pure virtual |
Sets the callback function that is called when a synchronization event happens.
| function | The function to be called. |
| data | User data to be passed to the callback. |
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.
|
pure virtual |
Stops the synchronizer playback.
Implemented in CoreAudioSynchronizer, DefaultSynchronizer, and JackSynchronizer.