|
YAACC - UPNP Client and Server
|
The offset between the server clock and the client clock, as the time sync knows it. More...


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. | |
The offset between the server clock and the client clock, as the time sync knows it.
| 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().

| 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.

| 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().

| 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.