|
YAACC - UPNP Client and Server
|
The pieces of one session, put together in one place so that the wiring can be tested: one MicroClock made from the given source of nanoseconds (on Android SystemClock::elapsedRealtimeNanos, which keeps counting while the device sleeps; hand-off S62) is given to the connection (its time sync is measured on it) and to the engine (it schedules on it), and the engine reads the offset from the connection's own filter.
More...

Public Member Functions | |
| MicroClock | clock () |
| SnapcastConnection | connection () |
| AudioSink | sink () |
| EngineHost | host () |
Static Public Member Functions | |
| static SnapcastConnection.Config | connectionConfig () |
| The phone's own client keeps trying while it is switched on, like the reference client: a server that restarts, a Wi-Fi that drops or a server that is away for a minute must not end the session after five tries (about 15 seconds). | |
| static ClientSession | assemble (SnapcastTransport transport, HelloMessage hello, int manualLatencyMs, Function< MicroClock, ? extends AudioSink > sinks, DecoderFactory decoders, LongSupplier nanoSource, ClientEngineConfig config, ThreadFactory audioThreads, EngineHost.Observer observer) |
The pieces of one session, put together in one place so that the wiring can be tested: one MicroClock made from the given source of nanoseconds (on Android SystemClock::elapsedRealtimeNanos, which keeps counting while the device sleeps; hand-off S62) is given to the connection (its time sync is measured on it) and to the engine (it schedules on it), and the engine reads the offset from the connection's own filter.
Nothing is started.
|
static |
The phone's own client keeps trying while it is switched on, like the reference client: a server that restarts, a Wi-Fi that drops or a server that is away for a minute must not end the session after five tries (about 15 seconds).
The pause between tries grows to 30 seconds; a reason that a retry would meet again (authorization, a codec that is not allowed) still stops at once, and a session that did not play for 15 minutes ends anyway (SessionPowerPolicy).