@grame/faustwasm 0.14.0 → 0.14.1
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/assets/standalone/faustwasm/index.d.ts +6 -0
- package/assets/standalone/faustwasm/index.js +13 -6
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +13 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +6 -0
- package/dist/cjs-bundle/index.js +13 -6
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +13 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +6 -0
- package/dist/esm-bundle/index.js +13 -6
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +1 -1
- package/src/SoundfileReader.ts +14 -6
- package/test/faustlive-wasm/faustwasm/index.d.ts +6 -0
- package/test/faustlive-wasm/faustwasm/index.js +13 -6
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/organ/create-node.js +0 -252
- package/test/organ/dsp-meta.json +0 -131
- package/test/organ/dsp-module.wasm +0 -0
- package/test/organ/faust-pwa.js +0 -344
- package/test/organ/faust-ui/index.css +0 -442
- package/test/organ/faust-ui/index.css.map +0 -1
- package/test/organ/faust-ui/index.d.ts +0 -1
- package/test/organ/faust-ui/index.js +0 -3756
- package/test/organ/faust-ui/index.js.map +0 -1
- package/test/organ/faustwasm/index.d.ts +0 -1730
- package/test/organ/faustwasm/index.js +0 -5969
- package/test/organ/faustwasm/index.js.map +0 -7
- package/test/organ/icon.png +0 -0
- package/test/organ/index.html +0 -76
- package/test/organ/index.js +0 -69
- package/test/organ/manifest.json +0 -17
- package/test/organ/service-worker.js +0 -165
|
@@ -1330,6 +1330,12 @@ export declare class WavDecoder {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
/** Read metadata and fetch soundfiles */
|
|
1332
1332
|
export declare class SoundfileReader {
|
|
1333
|
+
/**
|
|
1334
|
+
* Set fallback base URLs used to resolve soundfile paths.
|
|
1335
|
+
*
|
|
1336
|
+
* In Node or other non-browser runtimes, `location` may be undefined;
|
|
1337
|
+
* in that case this returns an empty list to avoid resolution errors.
|
|
1338
|
+
*/
|
|
1333
1339
|
static get fallbackPaths(): string[];
|
|
1334
1340
|
/**
|
|
1335
1341
|
* Extract the parent URL from an URL.
|
package/dist/cjs-bundle/index.js
CHANGED
|
@@ -10278,13 +10278,20 @@ export default ${(_b = jsCode.match(jsCodeHead)) == null ? void 0 : _b[1]};
|
|
|
10278
10278
|
|
|
10279
10279
|
// src/SoundfileReader.ts
|
|
10280
10280
|
var SoundfileReader = class {
|
|
10281
|
-
|
|
10281
|
+
/**
|
|
10282
|
+
* Set fallback base URLs used to resolve soundfile paths.
|
|
10283
|
+
*
|
|
10284
|
+
* In Node or other non-browser runtimes, `location` may be undefined;
|
|
10285
|
+
* in that case this returns an empty list to avoid resolution errors.
|
|
10286
|
+
*/
|
|
10282
10287
|
static get fallbackPaths() {
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
]
|
|
10288
|
+
const loc = typeof location !== "undefined" ? location : null;
|
|
10289
|
+
const href = loc == null ? void 0 : loc.href;
|
|
10290
|
+
const origin = loc == null ? void 0 : loc.origin;
|
|
10291
|
+
const parent = href ? this.getParentUrl(href) : null;
|
|
10292
|
+
return [href, parent, origin].filter(
|
|
10293
|
+
(value) => typeof value === "string" && value.length > 0
|
|
10294
|
+
);
|
|
10288
10295
|
}
|
|
10289
10296
|
/**
|
|
10290
10297
|
* Extract the parent URL from an URL.
|