Return the loader promise for chaining

This commit is contained in:
Paul Kaplan 2017-03-31 12:02:36 -04:00
parent dff7f24ad9
commit cc454f2f72

View file

@ -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;