From: Alexander Monakov Date: Fri, 17 Dec 2010 23:23:08 +0000 (+0300) Subject: Drop Doppler X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=af80f1f20e2b21ccf08af5421e5c683ac6deebcd;hp=bd635bf9468562568574e88f543b4e635c845918;p=lugaru.git Drop Doppler --- diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index e7889a4..cdc8b9b 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -170,8 +170,6 @@ void Game::LoadSounds() LOG(std::string("Loading sounds...")); - OPENAL_3D_SetDopplerFactor(0); - OPENAL_SetSFXMasterVolume((int)(volume*255)); if(visibleloading){LoadingScreen(); loadscreencolor=5;} diff --git a/Source/openal_wrapper.cpp b/Source/openal_wrapper.cpp index 4dddfd5..5ac0f6b 100644 --- a/Source/openal_wrapper.cpp +++ b/Source/openal_wrapper.cpp @@ -185,12 +185,6 @@ AL_API signed char OPENAL_3D_SetAttributes(int channel, const float *pos, const return true; } -AL_API void OPENAL_3D_SetDopplerFactor(float scale) -{ - if (!initialized) return; - // unimplemented...looks like init routines just call this with scale == 0.0f anyhow. -} - AL_API signed char OPENAL_Init(int mixrate, int maxsoftwarechannels, unsigned int flags) { if (initialized) return false; diff --git a/Source/openal_wrapper.h b/Source/openal_wrapper.h index 99fad2c..f0b730f 100644 --- a/Source/openal_wrapper.h +++ b/Source/openal_wrapper.h @@ -70,7 +70,6 @@ extern "C" { AL_API void OPENAL_3D_Listener_SetAttributes(const float *pos, const float *vel, float fx, float fy, float fz, float tx, float ty, float tz); AL_API signed char OPENAL_3D_SetAttributes(int channel, const float *pos, const float *vel); -AL_API void OPENAL_3D_SetDopplerFactor(float scale); AL_API signed char OPENAL_Init(int mixrate, int maxsoftwarechannels, unsigned int flags); AL_API void OPENAL_Close(); AL_API OPENAL_SAMPLE *OPENAL_GetCurrentSample(int channel);