mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-03 11:35:49 -05:00
Fix getter
This commit is contained in:
parent
062f39244b
commit
e8334e5a9b
1 changed files with 2 additions and 2 deletions
|
@ -230,8 +230,8 @@ class AudioEngine {
|
|||
* @param {!string} soundId - the id of the sound buffer to get
|
||||
* @return {AudioBuffer} the buffer corresponding to the given sound id.
|
||||
*/
|
||||
getSoundBuffer (soundId, newBuffer) {
|
||||
return this.audioBuffers[soundId] = newBuffer;
|
||||
getSoundBuffer (soundId) {
|
||||
return this.audioBuffers[soundId];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue