add music for room events

This commit is contained in:
jorsi
2020-06-01 15:37:12 -04:00
parent 28cab1d08f
commit a9701124c8
10 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ var AudioEngine = {
AudioEngine.currentEventAudio = bufferSource;
AudioEngine.tracks['events'].gain.setValueAtTime(0.0, AudioEngine.audioContext.currentTime);
AudioEngine.tracks['events'].gain.linearRampToValueAtTime(0.1, fadeTime);
AudioEngine.tracks['events'].gain.linearRampToValueAtTime(1.0, fadeTime);
},
_stopEventMusic: function () {
var fadeTime = AudioEngine.audioContext.currentTime + AudioEngine.FADE_TIME * 2;
+29 -29
View File
@@ -2,35 +2,35 @@
* Module that defines all audio files
*/
var AudioLibrary = {
EVENT_FRIENDLY_OUTPOST: 'audio/friendly-outpost.flac',
EVENT_SWAMP: 'audio/swamp.flac',
EVENT_CAVE: 'audio/cave.flac',
EVENT_TOWN: 'audio/town.flac',
EVENT_CITY: 'audio/city.flac',
EVENT_HOUSE: 'audio/house.flac',
EVENT_BATTLEFIELD: 'audio/battlefield.flac',
EVENT_BOREHOLE: 'audio/borehole.flac',
EVENT_CRASHED_SHIP: 'audio/crashed-ship.flac',
EVENT_SULPHUR_MINE: 'audio/sulphurmine.flac',
EVENT_COAL_MINE: 'audio/coalmine.flac',
EVENT_IRON_MINE: 'audio/ironmine.flac',
EVENT_DESTROYED_VILLAGE: 'audio/destroyed-village.flac',
EVENT_NOMAD: 'audio/nomad.flac',
EVENT_NOISES_OUTSIDE: 'audio/noises-outside.flac',
EVENT_NOISES_INSIDE: 'audio/noises-inside.flac',
EVENT_BEGGAR: 'audio/beggar.flac',
EVENT_SHADY_BUILDER: 'audio/shady-builder.flac',
EVENT_MYSTERIOUS_WANDERER: 'audio/mysterious-wanderer.flac',
EVENT_SCOUT: 'audio/scout.flac',
EVENT_WANDERING_MASTER: 'audio/wandering-master.flac',
EVENT_SICK_MAN: 'audio/sick-man.flac',
EVENT_RUINED_TRAP: 'audio/ruined-trap.flac',
EVENT_HUT_FIRE: 'audio/hut-fire.flac',
EVENT_SICKNESS: 'audio/sickness.flac',
EVENT_PLAGUE: 'audio/plague.flac',
EVENT_BEAST_ATTACK: 'audio/beast-attack.flac',
EVENT_SOLDIER_ATTACK: 'audio/soldier-attack.flac',
EVENT_THIEF: 'audio/thief.flac',
EVENT_FRIENDLY_OUTPOST: 'audio/event-friendly-outpost.flac',
EVENT_SWAMP: 'audio/event-swamp.flac',
EVENT_CAVE: 'audio/event-cave.flac',
EVENT_TOWN: 'audio/event-town.flac',
EVENT_CITY: 'audio/event-city.flac',
EVENT_HOUSE: 'audio/event-house.flac',
EVENT_BATTLEFIELD: 'audio/event-battlefield.flac',
EVENT_BOREHOLE: 'audio/event-borehole.flac',
EVENT_CRASHED_SHIP: 'audio/event-crashed-ship.flac',
EVENT_SULPHUR_MINE: 'audio/event-sulphurmine.flac',
EVENT_COAL_MINE: 'audio/event-coalmine.flac',
EVENT_IRON_MINE: 'audio/event-ironmine.flac',
EVENT_DESTROYED_VILLAGE: 'audio/event-destroyed-village.flac',
EVENT_NOMAD: 'audio/event-nomad.flac',
EVENT_NOISES_OUTSIDE: 'audio/event-noises-outside.flac',
EVENT_NOISES_INSIDE: 'audio/event-noises-inside.flac',
EVENT_BEGGAR: 'audio/event-beggar.flac',
EVENT_SHADY_BUILDER: 'audio/event-shady-builder.flac',
EVENT_MYSTERIOUS_WANDERER: 'audio/event-mysterious-wanderer.flac',
EVENT_SCOUT: 'audio/event-scout.flac',
EVENT_WANDERING_MASTER: 'audio/event-wandering-master.flac',
EVENT_SICK_MAN: 'audio/event-sick-man.flac',
EVENT_RUINED_TRAP: 'audio/event-ruined-trap.flac',
EVENT_HUT_FIRE: 'audio/event-hut-fire.flac',
EVENT_SICKNESS: 'audio/event-sickness.flac',
EVENT_PLAGUE: 'audio/event-plague.flac',
EVENT_BEAST_ATTACK: 'audio/event-beast-attack.flac',
EVENT_SOLDIER_ATTACK: 'audio/event-soldier-attack.flac',
EVENT_THIEF: 'audio/event-thief.flac',
ENCOUNTER_SNARLING_BEAST: 'audio/snarling-beast.flac',
ENCOUNTER_GAUNT_MAN: 'audio/gaunt-man.flac',
ENCOUNTER_STRANGE_BIRD: 'audio/strange-bird.flac',