Cap-go / native-audio

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

fix IOS crashing if preload not loaded or channels does not have index #39

Closed antonymarion closed 1 year ago

antonymarion commented 1 year ago

Hi Martin,

I noticed that the Lib is crashing over IOS if preload did not work before, whereas in Android preload can fail but then you can call play, it does not trigger anything but on Android it is not crashing the app embedding the native audio lib.

I added a check before accessing the channels array and now it does not crash the app any more.

Regards, Antony