@capgo/native-audio 6.4.9 → 6.4.10

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.
@@ -343,23 +343,15 @@ public class NativeAudio
343
343
  if (asset != null) {
344
344
  asset.unload();
345
345
  audioAssetList.remove(audioId);
346
- status = new JSObject();
347
- status.put("status", "OK");
348
- call.resolve(status);
346
+ call.resolve();
349
347
  } else {
350
- status = new JSObject();
351
- status.put("status", false);
352
- call.resolve(status);
348
+ call.reject(ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
353
349
  }
354
350
  } else {
355
- status = new JSObject();
356
- status.put("status", ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
357
- call.resolve(status);
351
+ call.reject(ERROR_AUDIO_ASSET_MISSING + " - " + audioId);
358
352
  }
359
353
  } else {
360
- status = new JSObject();
361
- status.put("status", ERROR_AUDIO_ID_MISSING);
362
- call.resolve(status);
354
+ call.reject(ERROR_AUDIO_ID_MISSING);
363
355
  }
364
356
  } catch (Exception ex) {
365
357
  call.reject(ex.getMessage());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "6.4.9",
3
+ "version": "6.4.10",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",