@capgo/native-audio 7.3.11 → 7.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,5 +61,5 @@ dependencies {
61
61
  implementation 'androidx.media3:media3-transformer:1.5.1'
62
62
  implementation 'androidx.media3:media3-ui:1.5.1'
63
63
  implementation 'androidx.media3:media3-database:1.5.1'
64
- implementation 'androidx.media3:media3-common:1.5.1'
64
+ implementation 'androidx.media3:media3-common:1.6.0'
65
65
  }
@@ -86,14 +86,19 @@ public class AudioAsset: NSObject, AVAudioPlayerDelegate {
86
86
  }
87
87
 
88
88
  deinit {
89
- stopCurrentTimeUpdates()
90
- stopFadeTimer()
89
+ currentTimeTimer?.invalidate()
90
+ currentTimeTimer = nil
91
+
92
+ fadeTimer?.invalidate()
93
+ fadeTimer = nil
94
+
91
95
  // Clean up any players that might still be playing
92
96
  for player in channels {
93
97
  if player.isPlaying {
94
98
  player.stop()
95
99
  }
96
100
  }
101
+ channels = []
97
102
  }
98
103
 
99
104
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "7.3.11",
3
+ "version": "7.3.13",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "license": "MIT",
6
6
  "main": "dist/plugin.cjs.js",