@capgo/native-audio 5.1.15 → 5.1.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ public class AudioAsset: NSObject, AVAudioPlayerDelegate {
28
28
 
29
29
  super.init()
30
30
 
31
- let pathUrl: URL = URL(string: path)!
31
+ let pathUrl: URL = URL(string: path.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!)!
32
32
  for _ in 0..<channels {
33
33
  do {
34
34
  let player: AVAudioPlayer! = try AVAudioPlayer(contentsOf: pathUrl)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "5.1.15",
3
+ "version": "5.1.17",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",