fm.liveswitch.SynchronizeContext Class Reference

A stream synchronization context. More...

Public Member Functions

long getNtpTimestampTicks ()
 Gets the NTP timestamp ticks. More...
 
long getSystemTimestamp ()
 Gets the system timestamp. More...
 
void setNtpTimestampTicks (long value)
 Sets the NTP timestamp ticks. More...
 
void setSystemTimestamp (long value)
 Sets the system timestamp. More...
 
 SynchronizeContext (long ntpTimestampTicks, long systemTimestamp)
 Initializes a new instance of the fm.liveswitch.SynchronizeContext class. More...
 
 SynchronizeContext (long systemTimestamp)
 Initializes a new instance of the fm.liveswitch.SynchronizeContext class. More...
 

Detailed Description

A stream synchronization context.

Constructor & Destructor Documentation

◆ SynchronizeContext() [1/2]

fm.liveswitch.SynchronizeContext.SynchronizeContext ( long  ntpTimestampTicks,
long  systemTimestamp 
)

Initializes a new instance of the fm.liveswitch.SynchronizeContext class.

Parameters
ntpTimestampTicksThe NTP timestamp ticks.
systemTimestampThe system timestamp.
Deprecated:
Use SynchronizeContext(systemTimestamp) instead.

◆ SynchronizeContext() [2/2]

fm.liveswitch.SynchronizeContext.SynchronizeContext ( long  systemTimestamp)

Initializes a new instance of the fm.liveswitch.SynchronizeContext class.

Parameters
systemTimestampThe system timestamp.

Member Function Documentation

◆ getNtpTimestampTicks()

long fm.liveswitch.SynchronizeContext.getNtpTimestampTicks ( )

Gets the NTP timestamp ticks.

Deprecated:
Use SystemTimestamp instead.

◆ getSystemTimestamp()

long fm.liveswitch.SynchronizeContext.getSystemTimestamp ( )

Gets the system timestamp.

Uses a clock known only to the remote sender, but consistent across synchronized streams.

◆ setNtpTimestampTicks()

void fm.liveswitch.SynchronizeContext.setNtpTimestampTicks ( long  value)

Sets the NTP timestamp ticks.

Deprecated:
Use SystemTimestamp instead.

◆ setSystemTimestamp()

void fm.liveswitch.SynchronizeContext.setSystemTimestamp ( long  value)

Sets the system timestamp.

Uses a clock known only to the remote sender, but consistent across synchronized streams.