From ae0ef40f6f710596e2c2f26c51ff1a4ed0dea466 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 6 Feb 2023 16:41:28 +0100 Subject: move blips to blips folder --- webAO/components/blip.js | 2 +- webAO/viewport/utils/handleICSpeaking.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webAO/components/blip.js b/webAO/components/blip.js index db6a784..6f896f5 100644 --- a/webAO/components/blip.js +++ b/webAO/components/blip.js @@ -7,7 +7,7 @@ import { AO_HOST } from '../client/aoHost' const createBlip = (amountOfBlips) => { for (let i = 0; i < amountOfBlips; i++) { const audio = document.createElement('audio') - const blipUrl = `${AO_HOST}sounds/general/sfx-blipmale.opus` + const blipUrl = `${AO_HOST}sounds/blips/male.opus` audio.setAttribute('class', 'blipSound') audio.setAttribute('src', blipUrl) document.body.appendChild(audio) diff --git a/webAO/viewport/utils/handleICSpeaking.ts b/webAO/viewport/utils/handleICSpeaking.ts index e2d147d..b1aa02d 100644 --- a/webAO/viewport/utils/handleICSpeaking.ts +++ b/webAO/viewport/utils/handleICSpeaking.ts @@ -244,7 +244,7 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => { client.viewport.blipChannels.forEach( (channel: HTMLAudioElement) => - (channel.src = `${AO_HOST}sounds/general/sfx-blip${encodeURI( + (channel.src = `${AO_HOST}sounds/blips/${encodeURI( client.viewport.getChatmsg().blips.toLowerCase() )}.opus`) ); -- cgit