@capgo/native-audio 6.1.34 → 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
- player.play(atTime: player.deviceCurrentTime + delay)
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "6.1.34",
3
+ "version": "6.1.35",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",