diff --git a/source/VideoPlayer.hx b/source/VideoPlayer.hx index 834a36c..467ee07 100644 --- a/source/VideoPlayer.hx +++ b/source/VideoPlayer.hx @@ -102,8 +102,10 @@ class VideoPlayer extends FlxSprite { } override public function update(elapsed:Float) { super.update(elapsed); - #if sys - soundMultiplier = player.renderedCount / videoFrames; + #if sys + @:privateAccess + soundMultiplier = player.renderedCount / videoFrames; + if (soundMultiplier > 1) { soundMultiplier = 1; @@ -142,4 +144,4 @@ class VideoPlayer extends FlxSprite { super.destroy(); #end } -} \ No newline at end of file +}