mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-29 00:31:53 +08:00
Disable audio until bugs and hosting can be worked out
This commit is contained in:
+14
-20
@@ -104,15 +104,6 @@
|
||||
Engine.loadGame();
|
||||
}
|
||||
|
||||
// start loading music and events early
|
||||
for (var key in AudioLibrary) {
|
||||
if (
|
||||
key.toString().indexOf('MUSIC_') > -1 ||
|
||||
key.toString().indexOf('EVENT_') > -1) {
|
||||
AudioEngine.loadAudioFile(AudioLibrary[key]);
|
||||
}
|
||||
}
|
||||
|
||||
$('<div>').attr('id', 'locationSlider').appendTo('#main');
|
||||
|
||||
var menu = $('<div>')
|
||||
@@ -142,11 +133,12 @@
|
||||
});
|
||||
}
|
||||
|
||||
$('<span>')
|
||||
.addClass('volume menuBtn')
|
||||
.text(_('sound on.'))
|
||||
.click(() => Engine.toggleVolume())
|
||||
.appendTo(menu);
|
||||
// Disable this for now
|
||||
// $('<span>')
|
||||
// .addClass('volume menuBtn')
|
||||
// .text(_('sound on.'))
|
||||
// .click(() => Engine.toggleVolume())
|
||||
// .appendTo(menu);
|
||||
|
||||
$('<span>')
|
||||
.addClass('appStore menuBtn')
|
||||
@@ -215,7 +207,7 @@
|
||||
$.Dispatch('stateUpdate').subscribe(Engine.handleStateUpdates);
|
||||
|
||||
$SM.init();
|
||||
AudioEngine.init();
|
||||
// AudioEngine.init(); Disable this for now
|
||||
Notifications.init();
|
||||
Events.init();
|
||||
Room.init();
|
||||
@@ -239,15 +231,17 @@
|
||||
Engine.triggerHyperMode();
|
||||
}
|
||||
|
||||
Engine.toggleVolume(Boolean($SM.get('config.soundOn')));
|
||||
if(!AudioEngine.isAudioContextRunning()){
|
||||
document.addEventListener('click', Engine.resumeAudioContext, true);
|
||||
}
|
||||
// Disable this for now
|
||||
// Engine.toggleVolume(Boolean($SM.get('config.soundOn')));
|
||||
// if(!AudioEngine.isAudioContextRunning()){
|
||||
// document.addEventListener('click', Engine.resumeAudioContext, true);
|
||||
// }
|
||||
|
||||
Engine.saveLanguage();
|
||||
Engine.travelTo(Room);
|
||||
|
||||
setTimeout(notifyAboutSound, 3000);
|
||||
// Disable this for now
|
||||
// setTimeout(notifyAboutSound, 3000);
|
||||
|
||||
},
|
||||
resumeAudioContext: function () {
|
||||
|
||||
Reference in New Issue
Block a user