From e8334e5a9b6f3dc3889650f227fc559405262f69 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 25 Jul 2017 12:55:23 -0400 Subject: [PATCH] Fix getter --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 514898a..2e94352 100644 --- a/src/index.js +++ b/src/index.js @@ -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]; } /**