make sure spatial audio is always applied immediately

mastering_effects
cosmonaut 2021-10-31 11:43:58 -07:00
parent 23b36b433a
commit 7894eae234
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)
{
FAudioGMS_INTERNAL_SoundInstance_AddEmitter(instance, x, y, z);
}
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);
}
}
}