Cap-go / native-audio

Capacitor plugin for native audio engine.
https://capgo.app
MIT License
38 stars 16 forks source link

Fix asset already exists issue #118

Closed HarelM closed 3 months ago

HarelM commented 6 months ago

Fixes #54

I'm not sure if it causes other issues though. I believe the load method is called once the app is starts and the plugin is being loaded so I think this is the right place to put it. Using this change I was not able to reproduce the issue on my device.

Let me know if you need anything else from my side.

As a side note, if the load is called before other methods, I think some cleaning of initSoundPool can be made, again, not sure.

I'm currently using this version with patch-package to allow testing my change.

HarelM commented 3 months ago

Didn't you say that this will create a memory leak in the linked issue?