Skip to content

feat(alsa): use LinkSynchronized audio timestamps on supported hardware#1177

Merged
roderickvd merged 5 commits intomasterfrom
feat/alsa-link-synchronized-timestamps
Apr 26, 2026
Merged

feat(alsa): use LinkSynchronized audio timestamps on supported hardware#1177
roderickvd merged 5 commits intomasterfrom
feat/alsa-link-synchronized-timestamps

Conversation

@roderickvd
Copy link
Copy Markdown
Member

@roderickvd roderickvd commented Apr 25, 2026

Use higher fidelity audio timestamps on ALSA devices that support them, while remaining in the same monotonic clock domain as now() for A/V sync. This results in lower jitter.

It also fixes some long-standing bugs with timestamps during stream creation. I now have the insight that callbacks already start firing when the ALSA PCM is in PREPARED state (either from initial creation or due to xrun recovery), while the trigger timestamp doesn't start counting until the PCM is in RUNNING state.

Devices without such support continue to use the system clock.

This comment was marked as resolved.

@roderickvd roderickvd requested a review from Copilot April 26, 2026 10:47

This comment was marked as resolved.

This comment was marked as resolved.

@roderickvd roderickvd merged commit e5d618c into master Apr 26, 2026
30 checks passed
@roderickvd roderickvd deleted the feat/alsa-link-synchronized-timestamps branch April 26, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants