From e6bcb144d9e9e9b09d651ed883b0baf3a1db3711 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sat, 22 Nov 2025 20:57:10 +0700 Subject: [PATCH] Fix really small sounds not playing --- source/lime/_internal/backend/native/NativeAudioSource.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lime/_internal/backend/native/NativeAudioSource.hx b/source/lime/_internal/backend/native/NativeAudioSource.hx index 2b602dc0..2678e622 100644 --- a/source/lime/_internal/backend/native/NativeAudioSource.hx +++ b/source/lime/_internal/backend/native/NativeAudioSource.hx @@ -669,14 +669,15 @@ class NativeAudioSource { if (!streamEnded) resetStream(); } if (AL.getSourcei(source, AL.SOURCE_STATE) != AL.PLAYING) AL.sourcePlay(source); + completeTimer = resetTimer(completeTimer, timeRemaining, timer_onRun); } } else { completed = timeRemaining < 8; lastTime = value; + if (completeTimer != null) completeTimer.stop(); } - updateCompleteTimer(); return value; }