Fix really small sounds not playing

This commit is contained in:
Ralty
2025-11-22 20:57:10 +07:00
parent 44d134eed0
commit e6bcb144d9
@@ -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;
}