From 8a9ab09aa32c5164da0403c85c5c32ab36f52a5e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 27 Jan 2014 20:07:41 -0600 Subject: Try default OpenAL driver if user set one fails to load --- src/client/snd_openal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c index 549286c3..05ef218f 100644 --- a/src/client/snd_openal.c +++ b/src/client/snd_openal.c @@ -2540,7 +2540,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; -- cgit