mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Competed a TODO to instantiate NoAudioSoundManager if there is no audio engine available or sounds are disabled in config
This commit is contained in:
parent
e03108e332
commit
87fa583c47
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue