This commit is contained in:
2025-03-11 16:42:49 +01:00
parent d2c9941a75
commit ea2d65ad14
29 changed files with 239 additions and 644 deletions

View File

@@ -227,7 +227,10 @@ namespace SteamAudio
~SteamAudioSource()
{
mThis.Free();
if (mThis.IsAllocated)
{
mThis.Free();
}
}
private void OnEnable()
@@ -510,7 +513,7 @@ namespace SteamAudio
case AudioRolloffMode.Logarithmic:
if (distance < rMin)
return 1.0f;
else if (distance < rMax)
else if (distance > rMax)
return 0.0f;
else
return rMin / distance;