The settings and the input of the client (a listen test of the phone as a Snapcast client).
More...
|
| static Request | check (String hostText, String latencyText) |
| |
| static Integer | parseWriteAhead (String text) |
| |
|
static ClientEngineConfig | engineConfig (int writeAheadMs, boolean flacGuard) |
| | The configuration of the engine for a session of the test screen (the write-ahead is clamped, the guard as chosen).
|
| |
|
static int | clampWriteAhead (int value) |
| |
| static Integer | parseLatency (String text) |
| |
| static boolean | isEnabled (de.yaacc.snapcast.SnapcastSettings.BooleanSource source) |
| |
| static boolean | isSwitchedOn (de.yaacc.snapcast.SnapcastSettings.BooleanSource source) |
| |
|
static Locality | localityOf (ServerEndpoint endpoint) |
| |
|
static String | helloHostName (ServerEndpoint endpoint, String phoneName) |
| | The host name for the Hello: the name of the phone for a local server, a generic one for a public address.
|
| |
|
static String | helloHostName (java.net.InetAddress resolved, String phoneName) |
| | The host name for the Hello decided from the address the connection really uses (the result of the name lookup), not from the text that was typed: a dynamic DNS name or a form like 0x08.0x08.0x08.0x08 is a "name" for the parser and a public address for the platform (review S18 of Group 8).
|
| |
|
|
static final String | KEY_ENABLED = "settings_snapcast_client" |
| | The key of the switch in the default preferences (also the name of its string resource).
|
| |
|
static final boolean | ENABLED_DEFAULT = false |
| |
|
static final String | KEY_LAST_HOST = "snapcast_client_host" |
| | Remembered between uses; plain text on the phone like the server list.
|
| |
| static final String | KEY_LAST_SERVER = "snapcast_client_last_server" |
| | The server the phone's client uses: the one it was last connected to, written when a session first reaches the connected state, when the user chooses a server on the card of the client, and when the listen test starts with a typed address.
|
| |
|
static final String | KEY_LAST_LATENCY = "snapcast_client_latency_ms" |
| |
|
static final String | KEY_SECRET = "snapcast_client_secret" |
| | The per-installation secret of the Hello id, see SnapcastClientIdentity.
|
| |
|
static final String | KEY_LAST_ENDING = "snapcast_client_last_ending" |
| | Why and when the last session ended (written by the service, also when the whole app exits); read by the dialog.
|
| |
|
static final String | KEY_LAST_ENDING_AT = "snapcast_client_last_ending_at" |
| |
| static final String | KEY_LAST_ENDING_SEEN = "snapcast_client_last_ending_seen" |
| | Whether the user has seen the last ending (a boolean, true when missing).
|
| |
| static final String | KEY_SWITCHED_ON = "settings_snapcast_client_switched_on" |
| | The one persisted state "the Snapcast client is switched on" (task 12C): set by the switch on the first page, the checkbox of the settings and the Start/Stop of the listen test, read by the restore at the start of the app.
|
| |
|
static final boolean | SWITCHED_ON_DEFAULT = false |
| |
|
static final String | KEY_LAST_WRITE_AHEAD = "snapcast_client_write_ahead_ms" |
| |
|
static final String | KEY_LAST_FLAC_GUARD = "snapcast_client_flac_guard" |
| | The "FLAC stall guard" check box of the test screen (default on).
|
| |
|
static final int | MIN_WRITE_AHEAD_MS = 40 |
| | How far ahead of the playback position the output is kept filled (the deep-buffer output of a phone needs more than its 128 ms queued: 250 by default).
|
| |
|
static final int | MAX_WRITE_AHEAD_MS = 350 |
| |
|
static final int | DEFAULT_WRITE_AHEAD_MS = 250 |
| |
|
static final int | MIN_LATENCY_MS = -2000 |
| |
|
static final int | MAX_LATENCY_MS = 2000 |
| |
The settings and the input of the client (a listen test of the phone as a Snapcast client).
The option is off by default; with it off nothing of the client is reachable from the UI. Pure.
| final String de.yaacc.snapcast.client.SnapcastClient.KEY_LAST_SERVER = "snapcast_client_last_server" |
|
static |