diff options
author | MAN-AT-ARMS <donny@ecgnetwork.com> | 2014-02-22 17:57:19 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:40 +0100 |
commit | 810d881c89b5f398f81aae07c93ef28daa59858b (patch) | |
tree | 97f16ed9a655c176ed1e1fb9a65d5e941114be5c | |
parent | 24b32bee94af9c0a3dc5846bacc515b18df4a26d (diff) |
Replace deprecated alDopplerVelocity with alSpeedOfSound per OpenAL 1.1 spec
-rw-r--r-- | src/client/qal.c | 3 | ||||
-rw-r--r-- | src/client/snd_openal.c | 4 |
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. |