From c81ddd09cc68cbf3382c458e061beaac0edf8f66 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Feb 2025 23:55:26 +0100 Subject: [PATCH] Fix spatial audio bug regression from 84843f8cbb7a2aa826fd9da32398adef52311937 #3224 #3206 --- Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp b/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp index 82abc8487..f9456d7dd 100644 --- a/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp +++ b/Source/Engine/Audio/OpenAL/AudioBackendOAL.cpp @@ -94,7 +94,7 @@ namespace ALC alSourcef(sourceID, AL_PITCH, pitch); alSourcef(sourceID, AL_SEC_OFFSET, 0.0f); alSourcei(sourceID, AL_LOOPING, loop); - alSourcei(sourceID, AL_SOURCE_RELATIVE, AL_TRUE); // Non-spatial sounds use AL_POSITION for panning + alSourcei(sourceID, AL_SOURCE_RELATIVE, !spatial); // Non-spatial sounds use AL_POSITION for panning alSourcei(sourceID, AL_BUFFER, 0); #ifdef AL_SOFT_source_spatialize alSourcei(sourceID, AL_SOURCE_SPATIALIZE_SOFT, AL_TRUE); // Always spatialize, fixes multi-channel played as spatial