From ee44c3ec89d65bdcfb4f707b8b45991c426a689b Mon Sep 17 00:00:00 2001 From: vince_wang Date: Tue, 31 Mar 2020 17:46:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSVGA=202.5.2=20=E5=A3=B0?= =?UTF-8?q?=E9=9F=B3=E6=97=A0=E6=B3=95=E6=92=AD=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SVGAPlayer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SVGAPlayer.m b/Source/SVGAPlayer.m index 92132e2f..90e74200 100644 --- a/Source/SVGAPlayer.m +++ b/Source/SVGAPlayer.m @@ -324,7 +324,7 @@ - (void)update { [CATransaction setDisableActions:NO]; if (self.forwardAnimating && self.audioLayers.count > 0) { for (SVGAAudioLayer *layer in self.audioLayers) { - if (!self.audioPlaying && layer.audioItem.startFrame >= self.currentFrame) { + if (!self.audioPlaying && layer.audioItem.startFrame+1 >= self.currentFrame) { [layer.audioPlayer setCurrentTime:(NSTimeInterval)(layer.audioItem.startTime / 1000)]; [layer.audioPlayer play]; self.audioPlaying = YES;