supersonic-scsynth 0.1.6 → 0.1.8
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
|
@@ -1609,6 +1609,7 @@ var SuperSonic = class {
|
|
|
1609
1609
|
this.onError = null;
|
|
1610
1610
|
const moduleUrl = new URL(import.meta.url);
|
|
1611
1611
|
const basePath = new URL(".", moduleUrl).href;
|
|
1612
|
+
this.basePath = basePath;
|
|
1612
1613
|
this.config = {
|
|
1613
1614
|
wasmUrl: new URL("wasm/scsynth-nrt.wasm", basePath).href,
|
|
1614
1615
|
workletUrl: new URL("workers/scsynth_audio_worklet.js", basePath).href,
|
|
@@ -1733,12 +1734,12 @@ var SuperSonic = class {
|
|
|
1733
1734
|
*/
|
|
1734
1735
|
async #loadWasmManifest() {
|
|
1735
1736
|
try {
|
|
1736
|
-
const manifestUrl = "
|
|
1737
|
+
const manifestUrl = new URL("wasm/manifest.json", this.basePath).href;
|
|
1737
1738
|
const response = await fetch(manifestUrl);
|
|
1738
1739
|
if (response.ok) {
|
|
1739
1740
|
const manifest = await response.json();
|
|
1740
|
-
const wasmFile =
|
|
1741
|
-
this.config.wasmUrl =
|
|
1741
|
+
const wasmFile = manifest.wasmFile;
|
|
1742
|
+
this.config.wasmUrl = new URL(`wasm/${wasmFile}`, this.basePath).href;
|
|
1742
1743
|
console.log(`[SuperSonic] Using WASM build: ${wasmFile}`);
|
|
1743
1744
|
console.log(`[SuperSonic] Build: ${manifest.buildId} (git: ${manifest.gitHash})`);
|
|
1744
1745
|
}
|
package/dist/wasm/manifest.json
CHANGED
|
Binary file
|
package/package.json
CHANGED