diff --git a/v3/src/sound/BaseSound.js b/v3/src/sound/BaseSound.js index 8724dfe8d..0a50c04a9 100644 --- a/v3/src/sound/BaseSound.js +++ b/v3/src/sound/BaseSound.js @@ -124,6 +124,11 @@ var BaseSound = new Class({ stop: function () { return this; }, + applyConfig: function () { + this.mute = this.currentConfig.mute; + this.volume = this.currentConfig.volume; + // TODO assign other config values to buffer source + }, fadeTo: function (volume, duration) { return null; }, diff --git a/v3/src/sound/WebAudioSound.js b/v3/src/sound/WebAudioSound.js index 4bdeb2302..ba744c846 100644 --- a/v3/src/sound/WebAudioSound.js +++ b/v3/src/sound/WebAudioSound.js @@ -60,9 +60,9 @@ var WebAudioSound = new Class({ } this.currentConfig = Extend(this.currentConfig, config); this.source = this.manager.context.createBufferSource(); - // TODO assign config values to buffer source this.source.buffer = this.audioBuffer; this.source.connect(this.muteNode); + this.applyConfig(); this.source.start(); return this; }