Struct dp_sample_clock_t¶
#include <timing_core.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint64_t | epoch_mono_ns |
| uint64_t | epoch_real_ns |
| double | fs |
| uint64_t | max_late_ns |
| uint64_t | n |
| int | resync |
| uint64_t | underruns |
Detailed Description¶
Sample-clock state. Treat the fields as read-only from the outside; mutate only through the functions below.
Public Attributes Documentation¶
variable epoch_mono_ns¶
CLOCK_MONOTONIC baseline for pacing.
variable epoch_real_ns¶
CLOCK_REALTIME baseline for stamping.
variable fs¶
sample rate (Hz).
variable max_late_ns¶
worst lateness observed (ns).
variable n¶
cumulative samples advanced.
variable resync¶
nonzero: pace() re-anchors on underrun.
variable underruns¶
pace() calls that arrived past deadline.
The documentation for this class was generated from the following file native/inc/timing/timing_core.h