Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Wait for PCM to be ready before writing #44

Merged
merged 1 commit into from Jun 7, 2022

Conversation

maciejhirsz
Copy link
Contributor

Pop!_OS has fixed the missing default setting for Alsa, but it was set to pulseaudio instead of pipewire.

This PR fixes an issue where attempt to write frames to pulseaudio would crash/block the audio thread. Adding this wait fixes it, please don't ask me why, I've no idea what I'm doing here. Tested both pulse and pipewire with the change and both are working.

@not-fl3
Copy link
Owner

not-fl3 commented Jun 7, 2022

Great work, not an easy thing to fix for sure!

A "wait" in the loop looks a bit suspicious, but your arguments are strong enough to merge it :D

@not-fl3 not-fl3 merged commit ccdbe8b into not-fl3:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants