git: 9front

Download patch

ref: d3fb61f2a8ddb446ccad615f58bcf5ecfbcd1343
parent: 5669b8dbd4891c7f33ab988b184feec43202f1a3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 16 21:02:01 EDT 2017

games/doom: don't spawn midi process when opening /dev/audio failed (thanks qwx)

--- a/sys/src/games/doom/i_sound.c
+++ b/sys/src/games/doom/i_sound.c
@@ -450,7 +450,7 @@
 	char name[64];
 	int n;
 
-	if(M_CheckParm("-nomusic"))
+	if(M_CheckParm("-nomusic") || audio_fd < 0)
 		return;
 	I_ShutdownMusic();
 	if(pipe(mpfd) < 0)
--