games/doom: don't spawn midi process when opening /dev/audio failed (thanks qwx)
This commit is contained in:
parent
1132d1b9df
commit
08453422b1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue