devkitPro / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
15 stars 12 forks source link

switch: audio: Fix deinitialization #25

Closed averne closed 1 year ago

averne commented 1 year ago

Fixes audio backend deinitialization.

Description

The missing audoutExit call meant the audio backend would leak audout sessions upon each reinitialization. This happens typically in media players, which clean up resources after each playback. The issue manifested in heavily artifacted/cracked audio.

Existing Issue(s)

https://github.com/devkitPro/SDL/commit/5c844fcd97b4550babb329b6667ed76f9a64c6df#r125287796