YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.engine.OffsetSource Interface Reference

The offset between the server clock and the client clock, as the time sync knows it. More...

Inheritance diagram for de.yaacc.multiroom.engine.OffsetSource:
Inheritance graph
Collaboration diagram for de.yaacc.multiroom.engine.OffsetSource:
Collaboration graph

Public Member Functions

boolean isSynchronized ()
 True when enough samples were taken to trust offsetMicros().
 
long offsetMicros ()
 The server clock minus the client clock in microseconds: server time = client time + offset.
 
int epoch ()
 A number that grows whenever the offset was found anew after a jump (a server restart): timestamps taken before belong to the old clock and must be dropped.
 
default boolean isSettled ()
 True when the estimate has had time to settle: with only a few samples it can still move by tens of milliseconds as the window fills (the median of three round trips on Wi-Fi), and audio that is aligned to it is then aligned wrongly.
 

Detailed Description

The offset between the server clock and the client clock, as the time sync knows it.

Member Function Documentation

◆ epoch()

int de.yaacc.multiroom.engine.OffsetSource.epoch ( )

A number that grows whenever the offset was found anew after a jump (a server restart): timestamps taken before belong to the old clock and must be dropped.

Implemented in de.yaacc.multiroom.engine.ClockOffsetFilter.

Referenced by de.yaacc.multiroom.engine.ClientEngine.status(), and de.yaacc.multiroom.engine.ClientEngine.tick().

Here is the caller graph for this function:

◆ isSettled()

default boolean de.yaacc.multiroom.engine.OffsetSource.isSettled ( )

True when the estimate has had time to settle: with only a few samples it can still move by tens of milliseconds as the window fills (the median of three round trips on Wi-Fi), and audio that is aligned to it is then aligned wrongly.

A source that does not know says what isSynchronized() says.

Implemented in de.yaacc.multiroom.engine.ClockOffsetFilter.

Here is the call graph for this function:

◆ isSynchronized()

boolean de.yaacc.multiroom.engine.OffsetSource.isSynchronized ( )

True when enough samples were taken to trust offsetMicros().

Implemented in de.yaacc.multiroom.engine.ClockOffsetFilter.

Referenced by de.yaacc.multiroom.engine.OffsetSource.isSettled(), and de.yaacc.multiroom.engine.ClientEngine.status().

Here is the caller graph for this function:

◆ offsetMicros()

long de.yaacc.multiroom.engine.OffsetSource.offsetMicros ( )

The server clock minus the client clock in microseconds: server time = client time + offset.

Implemented in de.yaacc.multiroom.engine.ClockOffsetFilter.


The documentation for this interface was generated from the following file: