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
AL lib throws unclosed device warning on proper game exit #8247
Comments
We're going to drop using OpenAL entirely in the near future, so that's a non-concern. |
@mrhelmut Okay, thanks for reply! Have a great day :) |
Adding some notes as I encountered this too (requires some surgical fixes - so may not be worth the effort - let process cleanup clean this with a silent harmless logging): So we need to destroy all streams first and then destroy the sound controller - hard to achieve with the current design (mixing statc/non-static). Curious, what's the alternative to OpenAL? |
FAudio. It's a reimplementation of XAudio 2 that is 100% accurate to XNA, so it's a no brainer. |
Prerequisites
develop
branchMonoGame Version
MonoGame 3.8.1.303
Which MonoGame platform are you using?
MonoGame Cross-Platform Desktop Application (mgdesktopgl)
Operating System
Windows 10 Pro 22H2
Description
The game doesn't properly dispose of audio somewhere on proper game exit, and it results in a AL lib warning and a possible (?) memory leak.
Steps to Reproduce
Minimal Example Repo
No response
Expected Behavior
The warning should not appear?
Resulting Behavior
The folowing warning is thrown in the Output console in VSCode:
"AL lib: (EE) alc_cleanup: 1 device not closed"
Files
The text was updated successfully, but these errors were encountered: