Skip to content

report xruns to user#2734

Open
Spacechild1 wants to merge 1 commit intopure-data:masterfrom
Spacechild1:xrun
Open

report xruns to user#2734
Spacechild1 wants to merge 1 commit intopure-data:masterfrom
Spacechild1:xrun

Conversation

@Spacechild1
Copy link
Contributor

@Spacechild1 Spacechild1 commented Aug 12, 2025

Currently, xruns only flash the "Audio I/O Error" message. Now we also send the number of dropped samples to "pd-xrun", so the user can handle it.

Xruns are reported from the audio callback with the sys_reportxrun function, which just increments an atomic counter. In sched_idletask we atomically check and reset the counter and take the appropriate action.

@Spacechild1 Spacechild1 added severity:feature suggestion for an enhancement severity:improvement improves an existing functionality without adding new features subject:audio Things concerning audio I/O, audio settings, etc. labels Aug 12, 2025
@reduzent

This comment was marked as outdated.

if an xrun occurs, flash "Audio I/O Error" label and send the number of dropped samples to the "pd-xrun" symbol.
@Spacechild1 Spacechild1 changed the title improve xrun handling report xruns to user Aug 12, 2025
@Spacechild1

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

severity:feature suggestion for an enhancement severity:improvement improves an existing functionality without adding new features subject:audio Things concerning audio I/O, audio settings, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants