From 3467fb7d85f63dd1804f8deb5bd8a4e3d4d16f15 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Tue, 7 Sep 2021 19:43:59 +0200 Subject: fix blips lmao --- webAO/client.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'webAO') diff --git a/webAO/client.js b/webAO/client.js index ec78007..9b17528 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1641,8 +1641,12 @@ class Viewport { // Allocate multiple blip audio channels to make blips less jittery - this.blipChannels = new Array(6); - this.blipChannels.fill(new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus")) + this.blipChannels = new Array( new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus"), + new Audio(AO_HOST + "sounds/general/sfx-blipmale.opus")); this.blipChannels.forEach(channel => channel.volume = 0.5); this.currentBlipChannel = 0; -- cgit