From 36a4075a8d2c1151822bfcf428cb9772a1d83307 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 27 Jan 2014 20:07:41 -0600 Subject: [PATCH] Try default OpenAL driver if user set one fails to load --- code/client/snd_openal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index e42fc894..2ba07038 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -2521,7 +2521,9 @@ qboolean S_AL_Init( soundInterface_t *si ) if( !QAL_Init( s_alDriver->string ) ) { Com_Printf( "Failed to load library: \"%s\".\n", s_alDriver->string ); - return qfalse; + if( !Q_stricmp( s_alDriver->string, ALDRIVER_DEFAULT ) || !QAL_Init( ALDRIVER_DEFAULT ) ) { + return qfalse; + } } device = s_alDevice->string;