@charivo/render-live2d 0.1.1 → 0.1.3

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/renderer.js CHANGED
@@ -13531,6 +13531,7 @@ var LAppWavFileHandler = class {
13531
13531
  if (typeof window === "undefined") return;
13532
13532
  this.stop();
13533
13533
  this.ensureContext();
13534
+ if (!this.audioContext) return;
13534
13535
  const context = this.audioContext;
13535
13536
  fetch(filePath).then((response) => response.arrayBuffer()).then((arrayBuffer) => context.decodeAudioData(arrayBuffer)).then((buffer) => {
13536
13537
  this.audioBufferSourceNode = context.createBufferSource();