add basic outline of audio for room

This commit is contained in:
jorsi
2020-05-29 17:53:18 -04:00
parent 978f53d40b
commit 12c6559802
13 changed files with 358 additions and 321 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -51,7 +51,7 @@ var AudioEngine = {
}
// fade in new track
var fadeTime = this.audioContext.currentTime + 5.0;
var fadeTime = this.audioContext.currentTime + 2.0;
newTrack.connect(this.tracks[nextBackgroundChannel]);
newTrack.start(0);
this.tracks[nextBackgroundChannel].gain.setValueAtTime(0.0, this.audioContext.currentTime);
@@ -60,7 +60,7 @@ var AudioEngine = {
// fade out old track
this.tracks[this.currentBackgroundChannel].gain.linearRampToValueAtTime(0.0, fadeTime);
if (this.currentTrack) {
this.currentTrack.stop(fadeTime + 1.0); // make sure fade has completed
this.currentTrack.stop(fadeTime + 0.3); // make sure fade has completed
}
// switch background track
+3 -4
View File
@@ -72,10 +72,10 @@
options: {
state: null,
debug: false,
log: false,
debug: true,
log: true,
dropbox: false,
doubleTime: false
doubleTime: true
},
init: function(options) {
@@ -597,7 +597,6 @@
Engine.activeModule = module;
module.onArrival(diff);
Notifications.printQueue(module);
AudioEngine.changeMusic(module.music);
}
},
-1
View File
@@ -3,7 +3,6 @@
*/
var Outside = {
name: _("Outside"),
music: '/audio/outside.wav',
_STORES_OFFSET: 0,
_GATHER_DELAY: 60,
+243 -204
View File
File diff suppressed because it is too large Load Diff