nxdk icon indicating copy to clipboard operation
nxdk copied to clipboard

OpenXDK XAudio does not deinitialize itself

Open JayFoxRox opened this issue 5 years ago • 2 comments

xaudio leaks memory; it also plays garbage while the application is quitting (because it will keep buffers alive, but they'll be overwritten / free'd by the kernel or next application).

A shutdown handler should be registered and a function for de-initializing AC97 should be added.

We should probably investigate #362 first, because even just calling XAudioInit shortly before shutting down actually seems to hide that issue.

JayFoxRox avatar Jun 09 '20 04:06 JayFoxRox

Related #449 and #458 - XAudio api is most likely deprecated soon®.

Teufelchen1 avatar Apr 16 '21 12:04 Teufelchen1

Not strictly related: XAudio API is deprecated, but the implementation won't be.

So people should stop using XAudio directly, but the code will continue to be used, so all bugs are still valid. These issues also affect users who use XAudio through SDL audio (which is the recommended way of using audio on nxdk).

JayFoxRox avatar Apr 16 '21 16:04 JayFoxRox