From c45a799dc5c008da761457c1e90869b0d8d43f15 Mon Sep 17 00:00:00 2001 From: oxmox Date: Sun, 19 Feb 2023 12:39:43 +0100 Subject: [PATCH] dp_doom: make errors from IB_StartupSound() non-fatal Not sure if it actually runs without sound or die horribly. Needs testing. --- src/dp_doom/linuxdoom-1.10/i_sound.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dp_doom/linuxdoom-1.10/i_sound.c b/src/dp_doom/linuxdoom-1.10/i_sound.c index 7d78c04..58c113b 100644 --- a/src/dp_doom/linuxdoom-1.10/i_sound.c +++ b/src/dp_doom/linuxdoom-1.10/i_sound.c @@ -37,6 +37,8 @@ #include "doomdef.h" +#include + #define NUM_CHANNELS 8 static unsigned int output_sample_rate; @@ -512,7 +514,10 @@ void I_StartupSound(void) vol_lookup[i][j] = (i*(j-128)*256)/127; if (!IB_StartupSound(StartupCallback, AudioCallback, NULL)) - I_Error("I_StartupSound: Failed to initialize backend"); + { + //I_Error("I_StartupSound: Failed to initialize backend"); + log_warn("I_StartupSound: Failed to initialize backend"); + } // // Cache sounds.