From 08453422b1b8ac1daaba8000fb07d6551fb155b8 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 17 Mar 2017 01:02:01 +0100 Subject: games/doom: don't spawn midi process when opening /dev/audio failed (thanks qwx) --- sys/src/games/doom/i_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/games/doom/i_sound.c b/sys/src/games/doom/i_sound.c index ed2f5c856..1eae90838 100644 --- a/sys/src/games/doom/i_sound.c +++ b/sys/src/games/doom/i_sound.c @@ -450,7 +450,7 @@ void I_PlaySong(musicinfo_t *m, int loop) char name[64]; int n; - if(M_CheckParm("-nomusic")) + if(M_CheckParm("-nomusic") || audio_fd < 0) return; I_ShutdownMusic(); if(pipe(mpfd) < 0) -- cgit v1.2.3