From 87fa583c4754dc672e1822b2b63673bcbfbed782 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sat, 20 Jan 2018 21:23:43 +0100 Subject: [PATCH] Competed a TODO to instantiate NoAudioSoundManager if there is no audio engine available or sounds are disabled in config --- src/sound/SoundManagerCreator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sound/SoundManagerCreator.js b/src/sound/SoundManagerCreator.js index 7e055d5df..44d55bd14 100644 --- a/src/sound/SoundManagerCreator.js +++ b/src/sound/SoundManagerCreator.js @@ -1,6 +1,6 @@ -var BaseSoundManager = require('./BaseSoundManager'); var WebAudioSoundManager = require('./webaudio/WebAudioSoundManager'); var HTML5AudioSoundManager = require('./html5/HTML5AudioSoundManager'); +var NoAudioSoundManager = require('./noaudio/NoAudioSoundManager'); var SoundManagerCreator = { @@ -11,8 +11,7 @@ var SoundManagerCreator = { if ((audioConfig && audioConfig.noAudio) || (!deviceAudio.webAudio && !deviceAudio.audioData)) { - // TODO add no audio implementation of BaseSoundManager - return new BaseSoundManager(game); + return new NoAudioSoundManager(game); } if(deviceAudio.webAudio && !(audioConfig && audioConfig.disableWebAudio))