mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
add basic outline of audio for room
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -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
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
var Outside = {
|
||||
name: _("Outside"),
|
||||
music: '/audio/outside.wav',
|
||||
|
||||
_STORES_OFFSET: 0,
|
||||
_GATHER_DELAY: 60,
|
||||
|
||||
+353
-314
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user