forked from MoonsideGames/FAudioGMS
make sure spatial audio is always applied immediately
parent
f004fb8585
commit
9f4f2a50c4
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->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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue