Skip to content

refactor(audio_thread_priority): use actual buffer size and report specific error kind#1179

Merged
roderickvd merged 2 commits intomasterfrom
refactor/audio-thread-priority
Apr 26, 2026
Merged

refactor(audio_thread_priority): use actual buffer size and report specific error kind#1179
roderickvd merged 2 commits intomasterfrom
refactor/audio-thread-priority

Conversation

@roderickvd
Copy link
Copy Markdown
Member

@roderickvd roderickvd commented Apr 26, 2026

Introduce ErrorKind:: ThreadPriorityUnavailable to indicate a transient error: the stream may still play but not at the requested priority escalation.

Also ensure that WASAPI and ALSA use the actual period size - not what was requested with BufferSize::Fixed() (it may have negotiated a different value) and not the full buffer size.

This comment was marked as resolved.

This comment was marked as outdated.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Opportunistic refactoring to remove the custom ControlFlow enum
and switch functions to use std::ops::ControlFlow.
@roderickvd roderickvd force-pushed the refactor/audio-thread-priority branch from e7ab0b5 to 07693ad Compare April 26, 2026 20:07
@roderickvd roderickvd merged commit acfb822 into master Apr 26, 2026
30 checks passed
@roderickvd roderickvd deleted the refactor/audio-thread-priority branch April 26, 2026 20:07
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