Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

set realtime priority for stream threads in alsa and wasapi #955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edwloef
Copy link

@edwloef edwloef commented Feb 22, 2025

implements #939. As someone who doesn't know a whole lot about cpal's inner workings it looks to me like these are the only threads that the library spawns itself, leading me to think these are the only threads that require manual priority changes. However, audio_thread_priority claims to also support MacOS, so maybe someone could look into whether that's applicable here?

I'm not too massive of a fan of eprintln! here, however I think the failure should be shown but not prevent the audio thread from running.

I've tested this on my Linux laptop, some verification that this also works for the folks on WASAPI and the BSD's would be nice.

@edwloef
Copy link
Author

edwloef commented Feb 22, 2025

Seems like linux CI is failing due to dbus not being installed on the linux runners. Windows CI is failing cause I messed up :P

@edwloef edwloef force-pushed the audio_thread_priority branch 2 times, most recently from 5b4d56f to 6014a3c Compare February 22, 2025 10:40
implements RustAudio#939. As someone who doesn't know a whole lot about
cpal's inner workings it looks to me like these are the only
threads that the library spawns itself, leading me to think these
are the only threads that require manual priority changes. However,
`audio_thread_priority` claims to also support MacOS, so maybe
someone could look into whether that's applicable here?
@edwloef edwloef force-pushed the audio_thread_priority branch from 6014a3c to d61ef6d Compare February 22, 2025 10:42
@edwloef
Copy link
Author

edwloef commented Feb 22, 2025

Alright, windows is fixed. Should I update the CI and readme to include dbus on linux?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant