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:
parent
c51f83a5fa
commit
c292aadb68
1 changed files with 6 additions and 1 deletions
|
@ -37,6 +37,8 @@
|
|||
|
||||
#include "doomdef.h"
|
||||
|
||||
#include <dp_common.h>
|
||||
|
||||
#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.
|
||||
|
|
Loading…
Reference in a new issue