mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Use arraybuffer-loader instead of buffer-loader to load the start and end sounds. The music extension switched to this a few days ago.
This commit is contained in:
parent
cd11e19717
commit
250570e0ed
2 changed files with 4 additions and 4 deletions
|
@ -196,12 +196,12 @@ class Scratch3SpeechBlocks {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_loadUISounds () {
|
_loadUISounds () {
|
||||||
const startSoundBuffer = assetData['speech-rec-start.mp3'].buffer;
|
const startSoundBuffer = assetData['speech-rec-start.mp3'];
|
||||||
this._decodeSound(startSoundBuffer).then(buffer => {
|
this._decodeSound(startSoundBuffer).then(buffer => {
|
||||||
this._startSoundBuffer = 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._decodeSound(endSoundBuffer).then(buffer => {
|
||||||
this._endSoundBuffer = buffer;
|
this._endSoundBuffer = buffer;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'speech-rec-start.mp3': require('!buffer-loader!./assets/speech-rec-start.mp3'),
|
'speech-rec-start.mp3': require('!arraybuffer-loader!./assets/speech-rec-start.mp3'),
|
||||||
'speech-rec-end.mp3': require('!buffer-loader!./assets/speech-rec-end.mp3')
|
'speech-rec-end.mp3': require('!arraybuffer-loader!./assets/speech-rec-end.mp3')
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue