@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grame/faust-web-component",
3
3
  "description": "Web component embedding the Faust Compiler",
4
- "version": "0.2.10",
4
+ "version": "0.2.11",
5
5
  "module": "dist/faust-web-component.js",
6
6
  "files": [
7
7
  "src/",
@@ -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
@@ -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