You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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): Song (NVorbis impl) uses both the static OpenALSoundController.EnsureInitialized and the non-static methods via the stream (OggStream). This makes it nearly impossible to cleanly call OpenALSoundController.DestroyInstance -> as there may be streams that are not disposed but holding onto the OpenALSoundController.
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? SDL_Audio?
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: