summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/qal.c3
-rw-r--r--src/client/snd_openal.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/client/qal.c b/src/client/qal.c
index 8cef0379..df3a9b91 100644
--- a/src/client/qal.c
+++ b/src/client/qal.c
@@ -85,6 +85,7 @@ LPALGETBUFFERF qalGetBufferf;
LPALGETBUFFERI qalGetBufferi;
LPALDOPPLERFACTOR qalDopplerFactor;
LPALDOPPLERVELOCITY qalDopplerVelocity;
+LPALSPEEDOFSOUND qalSpeedOfSound;
LPALDISTANCEMODEL qalDistanceModel;
LPALCCREATECONTEXT qalcCreateContext;
@@ -203,6 +204,7 @@ qboolean QAL_Init(const char *libname)
qalGetBufferi = GPA("alGetBufferi");
qalDopplerFactor = GPA("alDopplerFactor");
qalDopplerVelocity = GPA("alDopplerVelocity");
+ qalSpeedOfSound = GPA("alSpeedOfSound");
qalDistanceModel = GPA("alDistanceModel");
qalcCreateContext = GPA("alcCreateContext");
@@ -302,6 +304,7 @@ void QAL_Shutdown( void )
qalGetBufferi = NULL;
qalDopplerFactor = NULL;
qalDopplerVelocity = NULL;
+ qalSpeedOfSound = NULL;
qalDistanceModel = NULL;
qalcCreateContext = NULL;
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c
index 05ef218f..4f8ccb79 100644
--- a/src/client/snd_openal.c
+++ b/src/client/snd_openal.c
@@ -2328,7 +2328,7 @@ void S_AL_Update( void )
}
if(s_alDopplerSpeed->modified)
{
- qalDopplerVelocity(s_alDopplerSpeed->value);
+ qalSpeedOfSound(s_alDopplerSpeed->value);
s_alDopplerSpeed->modified = qfalse;
}
@@ -2642,7 +2642,7 @@ qboolean S_AL_Init( soundInterface_t *si )
// Set up OpenAL parameters (doppler, etc)
qalDistanceModel(AL_INVERSE_DISTANCE_CLAMPED);
qalDopplerFactor( s_alDopplerFactor->value );
- qalDopplerVelocity( s_alDopplerSpeed->value );
+ qalSpeedOfSound( s_alDopplerSpeed->value );
#ifdef USE_VOIP
// !!! FIXME: some of these alcCaptureOpenDevice() values should be cvars.