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

This commit is contained in:
cinap_lenrek 2017-03-17 01:02:01 +01:00
parent 1132d1b9df
commit 08453422b1

View file

@ -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)