Skip to content

feat: add xrun reporting on AAudio, macOS, PipeWire and WASAPI - #1268

Merged
roderickvd merged 3 commits into
masterfrom
feat/xrun-forwarding
Jul 11, 2026
Merged

feat: add xrun reporting on AAudio, macOS, PipeWire and WASAPI#1268
roderickvd merged 3 commits into
masterfrom
feat/xrun-forwarding

Conversation

@roderickvd

Copy link
Copy Markdown
Member

Don't know how I missed this before, but here they are.

Still missing:

@roderickvd
roderickvd merged commit f944636 into master Jul 11, 2026
32 checks passed
@roderickvd
roderickvd deleted the feat/xrun-forwarding branch July 11, 2026 20:56
roderickvd added a commit that referenced this pull request Jul 21, 2026
AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY is documented as undefined on
the first GetBuffer call after Start, and in practice WASAPI sets it
unconditionally there since there's no previous packet to correlate a
device position against. Since #1268 we report that as a real Xrun, so
every capture stream starts with a spurious error.

Grab the device position from GetBuffer (previously discarded with
None) and only trust the discontinuity flag once it's nonzero, the
same guard WebRTC's WASAPI backend uses for the same caveat.

Fixes #1273
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.

1 participant