From 55ddeb7dec03b2dfd8fbbaf47a89147f595e5751 Mon Sep 17 00:00:00 2001 From: ItsyourboyJonnycat <107599365+ItsyourboyJonnycat@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:52:23 -0700 Subject: [PATCH] Fixed the private accces error --- source/VideoPlayer.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 +}