From 04467673b32c9ca8b5cd1dc63018dc35ff0c4da3 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Fri, 31 Mar 2017 10:50:21 -0400 Subject: [PATCH] Add stub for loadSounds function with warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … so that the gui can call it without breaking, until it is updated. --- src/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 68450a5..a5db0e7 100644 --- a/src/index.js +++ b/src/index.js @@ -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