shithub: riscv

Download patch

ref: 08453422b1b8ac1daaba8000fb07d6551fb155b8
parent: 1132d1b9df4c9ea2b857fa9778fe6762cd81ded8
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)