Add stub for loadSounds function with warning

… so that the gui can call it without breaking, until it is updated.
This commit is contained in:
Eric Rosenbaum 2017-03-31 10:50:21 -04:00
parent 83afeb1916
commit 04467673b3

View file

@ -87,7 +87,14 @@ AudioEngine.prototype.decodeSound = function (sound) {
);
};
/**
* An older version of the AudioEngine had this function to load all sounds
* This is a stub to provide a warning when it is called
* @todo remove this
*/
AudioEngine.prototype.loadSounds = function () {
log.warn('The loadSounds function is no longer available. Please use Scratch Storage.');
};
/**
* Play a note for a duration on an instrument with a volume