forked from MoonsideGames/FAudioGMS
make sure spatial audio is always applied immediately
parent
23b36b433a
commit
7894eae234
BIN
gamemaker/extensions/FAudioGMS/FAudioGMS.dll (Stored with Git LFS)
BIN
gamemaker/extensions/FAudioGMS/FAudioGMS.dll (Stored with Git LFS)
Binary file not shown.
|
@ -1054,14 +1054,18 @@ void FAudioGMS_SoundInstance_Set3DPosition(double soundInstanceID, double x, dou
|
||||||
|
|
||||||
if (instance != NULL)
|
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);
|
FAudioGMS_INTERNAL_SoundInstance_AddEmitter(instance, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
instance->emitter->Position.x = x;
|
|
||||||
instance->emitter->Position.y = y;
|
|
||||||
instance->emitter->Position.z = z;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue