Closing a window hangs for a second & causes pipewire to glitch #9948
Labels
A-Audio
Sounds playback and modification
A-Tasks
Tools for parallel and async work
C-Bug
An unexpected or incorrect behavior
O-Linux
Specific to the Linux desktop operating system
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Bevy version
Bevy v0.11.2
Relevant system information
Archlinux + pipewire 0.3.80 + x11
What you did
Close any bevy program's main window (if it includes the AudioPlugin).
Close any bevy program using Ctrl+C in the terminal (if it includes the AudioPlugin).
This happens whether or not bevy is actually playing any sound.
What went wrong
Expected: The window should close (almost) instantly without any audio issues.
Actual:
When I close the main window: it takes about ~1 second to close, and during that time, all of my desktop audio stutters (the last few milliseconds of audio repeat, causing audio popping).
When I Ctrl+C the terminal directly: the window closes almost instantly, and there is a short but loud popping sound.
It's not a major issue but it's a bit annoying as the audio glitching is often quite loud & uncomfortable, especially when it happens during a drum hit.
The text was updated successfully, but these errors were encountered: