Interface ISynchronizer
Manages a collection of ITimed
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public interface ISynchronizer
Properties
DataSourceCount
Get the number of timed data sources in the synchronization group.
Declaration
int DataSourceCount { get; }
Property Value
Type | Description |
---|---|
int |
PresentTime
The time to synchronize to for the current frame.
Declaration
FrameTimeWithRate? PresentTime { get; }
Property Value
Type | Description |
---|---|
Frame |
Remarks
If no Timecode
TimecodeSource
The source of the timecodes used for synchronization.
Declaration
ITimecodeSource TimecodeSource { get; set; }
Property Value
Type | Description |
---|---|
ITimecode |
Methods
AddDataSource(ITimedDataSource)
Add a timed data source to the synchronization group.
Declaration
bool AddDataSource(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimed |
source | The timed data source to add. |
Returns
GetDataSource(int)
Get the timed data source at the specified index.
Declaration
ITimedDataSource GetDataSource(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the timed data source. |
Returns
Type | Description |
---|---|
ITimed |
The timed data source at the index; null if the index is invalid. |
RemoveDataSource(ITimedDataSource)
Remove a timed data source from the synchronization group.
Declaration
bool RemoveDataSource(ITimedDataSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimed |
source | The timed data source to remove. |
Returns
Type | Description |
---|---|
bool | true if the source was removed from the synchronization group; otherwise, false. |
Update()
Perform synchronized update on synchronized group.
Declaration
void Update()