summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-03-17 01:02:01 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-03-17 01:02:01 +0100
commit08453422b1b8ac1daaba8000fb07d6551fb155b8 (patch)
tree83706b5a8d720fe13423d4bcce72db52a8df69d0 /sys/src/games
parent1132d1b9df4c9ea2b857fa9778fe6762cd81ded8 (diff)
games/doom: don't spawn midi process when opening /dev/audio failed (thanks qwx)
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/doom/i_sound.c2
1 files changed, 1 insertions, 1 deletions
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)