mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Return the loader promise for chaining
This commit is contained in:
parent
dff7f24ad9
commit
cc454f2f72
1 changed files with 1 additions and 3 deletions
|
@ -76,8 +76,7 @@ AudioEngine.prototype.decodeSound = function (sound) {
|
|||
}
|
||||
|
||||
var storedContext = this;
|
||||
|
||||
loaderPromise.then(
|
||||
return loaderPromise.then(
|
||||
function (decodedAudio) {
|
||||
storedContext.audioBuffers[sound.md5] = new Tone.Buffer(decodedAudio);
|
||||
},
|
||||
|
@ -319,4 +318,3 @@ AudioPlayer.prototype.setVolume = function (value) {
|
|||
};
|
||||
|
||||
module.exports = AudioEngine;
|
||||
|
||||
|
|
Loading…
Reference in a new issue