dp_doom: make errors from IB_StartupSound() non-fatal

Not sure if it actually runs without sound or die horribly. Needs testing.
This commit is contained in:
oxmox 2023-02-19 12:39:43 +01:00
parent c51f83a5fa
commit c292aadb68

View file

@ -37,6 +37,8 @@
#include "doomdef.h" #include "doomdef.h"
#include <dp_common.h>
#define NUM_CHANNELS 8 #define NUM_CHANNELS 8
static unsigned int output_sample_rate; static unsigned int output_sample_rate;
@ -512,7 +514,10 @@ void I_StartupSound(void)
vol_lookup[i][j] = (i*(j-128)*256)/127; vol_lookup[i][j] = (i*(j-128)*256)/127;
if (!IB_StartupSound(StartupCallback, AudioCallback, NULL)) 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. // Cache sounds.