supersonic-scsynth 0.1.4 → 0.1.5
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.
package/dist/supersonic.js
CHANGED
|
@@ -1607,9 +1607,11 @@ var SuperSonic = class {
|
|
|
1607
1607
|
this.onDebugMessage = null;
|
|
1608
1608
|
this.onInitialized = null;
|
|
1609
1609
|
this.onError = null;
|
|
1610
|
+
const moduleUrl = new URL(import.meta.url);
|
|
1611
|
+
const basePath = moduleUrl.pathname.includes("/dist/") ? new URL(".", moduleUrl).href : "./dist/";
|
|
1610
1612
|
this.config = {
|
|
1611
|
-
wasmUrl: "
|
|
1612
|
-
workletUrl: "
|
|
1613
|
+
wasmUrl: new URL("wasm/scsynth-nrt.wasm", basePath).href,
|
|
1614
|
+
workletUrl: new URL("workers/scsynth_audio_worklet.js", basePath).href,
|
|
1613
1615
|
development: false,
|
|
1614
1616
|
audioContextOptions: {
|
|
1615
1617
|
latencyHint: "interactive",
|
package/dist/wasm/manifest.json
CHANGED
|
Binary file
|
package/package.json
CHANGED