@capgo/native-audio 6.1.33 → 6.1.35
Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,11 @@ public class AudioAsset: NSObject, AVAudioPlayerDelegate {
|
|
75
75
|
player = channels[playIndex]
|
76
76
|
player.currentTime = time
|
77
77
|
player.numberOfLoops = 0
|
78
|
-
|
78
|
+
if (delay > 0) {
|
79
|
+
player.play(atTime: player.deviceCurrentTime + delay)
|
80
|
+
} else {
|
81
|
+
player.play()
|
82
|
+
}
|
79
83
|
playIndex += 1
|
80
84
|
playIndex = playIndex % channels.count
|
81
85
|
}
|