Fix getter

This commit is contained in:
Paul Kaplan 2017-07-25 12:55:23 -04:00
parent 062f39244b
commit e8334e5a9b

View file

@ -230,8 +230,8 @@ class AudioEngine {
* @param {!string} soundId - the id of the sound buffer to get * @param {!string} soundId - the id of the sound buffer to get
* @return {AudioBuffer} the buffer corresponding to the given sound id. * @return {AudioBuffer} the buffer corresponding to the given sound id.
*/ */
getSoundBuffer (soundId, newBuffer) { getSoundBuffer (soundId) {
return this.audioBuffers[soundId] = newBuffer; return this.audioBuffers[soundId];
} }
/** /**