Never skip setCurrentTime().

This commit is contained in:
player-03
2022-01-26 12:14:20 -05:00
committed by GitHub
parent 07e65257c4
commit 878982e3e2

View File

@@ -386,10 +386,11 @@ class NativeAudioSource
public function setCurrentTime(value:Int):Int public function setCurrentTime(value:Int):Int
{ {
if (value == getCurrentTime()) // `setCurrentTime()` has side effects and is never safe to skip.
/* if (value == getCurrentTime())
{ {
return value; return value;
} } */
if (handle != null) if (handle != null)
{ {