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

A snapshot of the engine for the status screen and the tests: plain numbers and typed values, nothing from the server except the numbers it influenced. More...

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

Public Member Functions

EngineStatus copy ()
 A copy to change without touching the object others hold (all fields are numbers, enums or strings).
 

Public Attributes

EngineState state = EngineState.WAITING_FOR_STREAM
 
EngineFailure failure
 
String codec = ""
 "pcm", "flac" or ""
 
int sampleRate
 
int channels
 
int sourceBits
 
boolean clockSynchronized
 
long offsetMicros
 
long jitterMicros
 
int epoch
 
long outputAheadMs = -1
 Audio written to the output and not yet played, in ms; -1 when the output has not reported a position.
 
long decodedWaitingMs
 Decoded audio waiting for its time, in ms.
 
int chunksWaiting
 
long driftMicros
 The drift (median) in microseconds, positive: late.
 
boolean aligned
 
String positionSource = ""
 
long positionAgeMs = -1
 
int manualLatencyMs
 
int serverLatencyMs
 
int bufferMs
 
int volume
 
boolean muted
 
long chunksReceived
 
long chunksPlayed
 
long droppedLate
 
long droppedTooFarAhead
 
long droppedQueueFull
 
long droppedOversized
 
long droppedFifoFull
 
long droppedOverlap
 
long droppedPartialBytes
 
long decodeFailures
 
long gapsFilled
 
long correctionDroppedFrames
 
long correctionRepeatedFrames
 
long stepSkippedFrames
 
long stepPaddedFrames
 
long timelineResyncs
 
long timelineRebases
 Times the timeline was shifted in place to keep the frame counts small (not a glitch).
 
long streamHolesRecovered
 Holes in a flac stream (a chunk dropped or failed) that were recovered by anchoring anew.
 
long holeOverflows
 Times more holes were pending than are remembered one by one (the stream is then placed by every chunk's timestamp).
 
long hostQueueDrops
 Chunks that found no room in the queue of the engine thread.
 
long flushes
 
long flushesSuppressed
 
long flushesHardResync
 Flushes by what caused them: the sum is flushes (a flush at a new header or a loss is counted there too).
 
long flushesUnderrun
 
long flushesWriterBehind
 
long flushesHeader
 
long flushesConnectionLost
 
long flushesPositionStall
 
int writeAheadMs
 Rises of the platform's underrun counter that the position confirmed / that it did not (no starvation).
 
long writes
 
long shortWrites
 Writes that took fewer frames than offered, the frames missing in all of them and in the worst one.
 
long shortWriteFramesMissing
 
long worstShortWriteFrames
 
long maxWriteMicros
 
long maxTickGapMs
 The longest time between two ticks of the engine thread, in ms.
 
long maxTickMicros
 The longest one engine tick, one chunk (decode and queue) and one position poll took, in microseconds.
 
long maxChunkMicros
 
long maxPositionPollMicros
 
long correctionBlocks
 Blocks that had a frame dropped or repeated, and the most frames changed in one block.
 
long correctionLargestBlockFrames
 
long stepsWhilePlaying
 Exact pads or skips after the stream was aligned (a step in a playing stream).
 
long stepsWhilePlayingFrames
 The frames padded or skipped in those steps.
 
boolean smoothCorrections
 True when a dropped or repeated frame is spread by interpolation (the service switches it on).
 
long driftSmoothedMicros
 The median of the last drift measurements (what the corrections act on).
 
long flacShiftFills
 A flac stream found shifted against its timestamps (a stall of the source): how often, and the silence inserted.
 
long flacShiftFilledMs
 
int flacGuardState
 The stall guard: 0 off (switched off), 1 on (positions from frame headers), 2 inactive (no header positions: never fills).
 
int flacLastFillReason
 The last fill: reason (1 seen at once, 2 over windows), what the guard saw (skew over its base, band, chunks since the anchor).
 
long flacLastFillSkewUs
 
long flacLastFillBandUs
 
long flacLastFillChunks
 
long flacLastFillMs
 
int flacPositionSource
 Where the position of the flac chunks comes from: 0 not known yet, 1 the frame headers, 2 the count of decoded frames.
 
long flacPositionRefusals
 Chunks of the flac stream whose frame header could not be read, and chunks whose position was read.
 
long flacPositionChunks
 
long flacReanchors
 A flac stream found later than its timestamps and placed anew: how often, and by how much the last time (ms).
 
long flacReanchoredMs
 
long streamResumes
 Restarts of the stream after a pause: how many, the gap of the last one and how long its first audio took.
 
long lastResumeGapMs
 
long lastResumeToAudioMs = -1
 
ConnectionStats connection
 The connection's counters (null before there is one): frames by type, bytes, the server's settings.
 
long lastChunkAgoMs = -1
 Milliseconds since the engine received the last chunk, -1 when none yet.
 
long underrunsCorroborated
 
long underrunRisesThin
 Rises of the counter that the position did not confirm (the output is not dry, but its cushion is too thin).
 
int writeAheadEffectiveMs
 The write-ahead in force (raised from writeAheadMs when the counter rises) and how often it was raised.
 
long writeAheadRaises
 
long lastHardResyncDriftMicros
 The drift (positive: late) that caused the latest hard resync.
 
long positionReportsAccepted
 Reports of the output's position taken into account and refused (stale, from the future, going back, ...).
 
long positionReportsRejected
 
long underruns
 
EventTrace trace
 The bounded event trace (shared, thread safe); null before the engine existed.
 
String outputSummary = ""
 One line about the output: buffer, start threshold, underruns, timestamp health.
 
long headersIgnored
 
long decoderStarts
 
long epochChanges
 
long connectionLosses
 
long elapsedMs
 

Detailed Description

A snapshot of the engine for the status screen and the tests: plain numbers and typed values, nothing from the server except the numbers it influenced.

The fields are public on purpose (a data holder); by convention nobody changes a snapshot after it was published, a changed one is made from copy().

Member Data Documentation

◆ writeAheadMs

int de.yaacc.multiroom.engine.EngineStatus.writeAheadMs

Rises of the platform's underrun counter that the position confirmed / that it did not (no starvation).

How far ahead of the playback position the engine keeps the output filled, in ms.


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