make sure spatial audio is always applied immediately

main
cosmonaut 2021-10-31 11:43:58 -07:00
parent f004fb8585
commit 9f4f2a50c4
2 changed files with 11 additions and 7 deletions

Binary file not shown.

View File

@ -1054,14 +1054,18 @@ void FAudioGMS_SoundInstance_Set3DPosition(double soundInstanceID, double x, dou
if (instance != NULL)
{
if (!instance->is3D)
if (instance->is3D)
{
instance->emitter->Position.x = x;
instance->emitter->Position.y = y;
instance->emitter->Position.z = z;
FAudioGMS_INTERNAL_Apply3D(instance);
}
else
{
FAudioGMS_INTERNAL_SoundInstance_AddEmitter(instance, x, y, z);
}
instance->emitter->Position.x = x;
instance->emitter->Position.y = y;
instance->emitter->Position.z = z;
}
}