From ce666db34f6e30583f77ef9db08888e83735c8d8 Mon Sep 17 00:00:00 2001 From: epochwon Date: Sun, 4 May 2025 14:24:34 -0400 Subject: [PATCH] don't use EFX doppler, set doppler factor globally instead of per-sound --- apps/openmw/mwsound/openaloutput.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwsound/openaloutput.cpp b/apps/openmw/mwsound/openaloutput.cpp index a586fc611a..e861545460 100644 --- a/apps/openmw/mwsound/openaloutput.cpp +++ b/apps/openmw/mwsound/openaloutput.cpp @@ -964,6 +964,7 @@ namespace MWSound // Speed of sound is in units per second. Take the sound speed in air (assumed // meters per second), multiply by the units per meter to get the speed in u/s. alSpeedOfSound(Constants::SoundSpeedInAir * Constants::UnitsPerMeter); + alDopplerFactor(Settings::sound().mDopplerFactor); alGetError(); mInitialized = true; @@ -1138,7 +1139,6 @@ namespace MWSound alSourcef(source, AL_GAIN, gain); alSourcef(source, AL_PITCH, pitch); - alSourcef(source, AL_DOPPLER_FACTOR, 0.0f); alSourcefv(source, AL_POSITION, pos.ptr()); alSource3f(source, AL_DIRECTION, 0.0f, 0.0f, 0.0f); alSource3f(source, AL_VELOCITY, 0.0f, 0.0f, 0.0f); @@ -1179,7 +1179,6 @@ namespace MWSound alSourcef(source, AL_GAIN, gain); alSourcef(source, AL_PITCH, pitch); - alSourcef(source, AL_DOPPLER_FACTOR, Settings::sound().mDopplerFactor); alSourcefv(source, AL_POSITION, pos.ptr()); alSource3f(source, AL_DIRECTION, 0.0f, 0.0f, 0.0f); alSourcefv(source, AL_VELOCITY, vel.ptr());