Sound direction bugged on linux

Positional Audio is bugged on linux.

To replicate:

  1. Play a sound left from the playing
    character
  2. Turn the playing character
    180° and play the sound again

Expected:
The sound is heard as coming from 2 different places

What happen:
The perceived position is the same. In Addition the sound doesn’t doesn’t come from the correct location.

More details:
If you play a sound from a moving object, the sound move, but the direction is wrong and doesn’t account for the player rotation.

I replicated this bug cloning both unreal tournament and unreal engine repos.

This bug can be seen even on Unreal Tournament 4: the direction the sounds come from doesn’t take into account the player orientation.

These 2 bug report present the issue:

Unreal Tournament Forum Downtime [1]

Unreal Tournament Forum Downtime [2]

This video (not mine) further illustrate the bug:

- YouTube [3]

Notice how the projectile sound always come from the left. The direction the sound come from seems to change from map to map.

EDIT: 4.9 Changed some things but the sound is still broken. I have now identified the issue:

EDIT2: 4.9 Actually Fixed things, i was wrong. I made a dumb mistake with the project I used to debug this.

Hey Overload-

Could you elaborate on what exactly you’re experiencing? I tried using the PlaySoundAtLocation on both Windows and Linux and the sound played the same on both. Could you provide examples of which sounds are not playing correctly for you?

Cheers

Sorry, I made a really dumb mistake in the project I used to test 4.9. Spatialized sounds actually work correctly now, this issue can be closed.

The only very minor thing is that in Runtime/ALAudio/Private/ALAudioSource.cpp there is a bit of dead code: the local variable Location in Update() is assigned but never used.