uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit a3ee7ab98278a9e8ae5dfe10bed519a1dfa7a7ea
parent 2afded6e05b585dea7802d2cc1bd7487b46c51a2
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Sun, 24 Oct 2021 22:14:27 +0200

emu: close audio device if used

Diffstat:
Msrc/uxnemu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -231,7 +231,8 @@ redraw(Uxn *u) static void quit(void) { - SDL_UnlockAudioDevice(audio_id); + if(audio_id) + SDL_CloseAudioDevice(audio_id); SDL_DestroyTexture(gTexture); gTexture = NULL; SDL_DestroyRenderer(gRenderer);