From 250570e0ed8189ccf26751c957b866f2520e62de Mon Sep 17 00:00:00 2001 From: picklesrus Date: Mon, 7 May 2018 15:21:44 -0700 Subject: [PATCH] Use arraybuffer-loader instead of buffer-loader to load the start and end sounds. The music extension switched to this a few days ago. --- src/extensions/scratch3_speech/index.js | 4 ++-- src/extensions/scratch3_speech/manifest.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index 873c10032..a1ce64f60 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -196,12 +196,12 @@ class Scratch3SpeechBlocks { * @private */ _loadUISounds () { - const startSoundBuffer = assetData['speech-rec-start.mp3'].buffer; + const startSoundBuffer = assetData['speech-rec-start.mp3']; this._decodeSound(startSoundBuffer).then(buffer => { this._startSoundBuffer = buffer; }); - const endSoundBuffer = assetData['speech-rec-end.mp3'].buffer; + const endSoundBuffer = assetData['speech-rec-end.mp3']; this._decodeSound(endSoundBuffer).then(buffer => { this._endSoundBuffer = buffer; }); diff --git a/src/extensions/scratch3_speech/manifest.js b/src/extensions/scratch3_speech/manifest.js index e5ce54d59..cb76b3ac0 100644 --- a/src/extensions/scratch3_speech/manifest.js +++ b/src/extensions/scratch3_speech/manifest.js @@ -1,4 +1,4 @@ module.exports = { - 'speech-rec-start.mp3': require('!buffer-loader!./assets/speech-rec-start.mp3'), - 'speech-rec-end.mp3': require('!buffer-loader!./assets/speech-rec-end.mp3') + 'speech-rec-start.mp3': require('!arraybuffer-loader!./assets/speech-rec-start.mp3'), + 'speech-rec-end.mp3': require('!arraybuffer-loader!./assets/speech-rec-end.mp3') };