mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
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:
parent
83afeb1916
commit
04467673b3
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue