@grame/faust-web-component 0.2.10 → 0.2.11
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/faust-web-component.js +40 -40
- package/package.json +1 -1
- package/src/faust-editor.ts +1 -1
- package/src/faust-widget.ts +1 -1
package/package.json
CHANGED
package/src/faust-editor.ts
CHANGED
@@ -450,7 +450,7 @@ export default class FaustEditor extends HTMLElement {
|
|
450
450
|
if (deviceId == "Audio File") {
|
451
451
|
try {
|
452
452
|
// Load the file
|
453
|
-
let file = await fetch('02-XYLO1.mp3');
|
453
|
+
let file = await fetch('./02-XYLO1.mp3');
|
454
454
|
const arrayBuffer = await file.arrayBuffer();
|
455
455
|
let audioBuffer = await audioCtx.decodeAudioData(arrayBuffer);
|
456
456
|
// Create a source node from the buffer
|
package/src/faust-widget.ts
CHANGED
@@ -219,7 +219,7 @@ export default class FaustWidget extends HTMLElement {
|
|
219
219
|
if (deviceId == "Audio File") {
|
220
220
|
try {
|
221
221
|
// Load the file
|
222
|
-
let file = await fetch('02-XYLO1.mp3');
|
222
|
+
let file = await fetch('./02-XYLO1.mp3');
|
223
223
|
const arrayBuffer = await file.arrayBuffer();
|
224
224
|
let audioBuffer = await audioCtx.decodeAudioData(arrayBuffer);
|
225
225
|
// Create a source node from the buffer
|