From 8e38229ed40c5b60446be2880d5ce6df48152586 Mon Sep 17 00:00:00 2001 From: Tony Ribeiro Date: Wed, 23 Aug 2023 03:47:13 +0200 Subject: [PATCH] Audio extension, handle custome background. Factorised bgm/ambient file listing into one assets listing function on server.js. --- public/scripts/extensions/audio/index.js | 80 ++++++------ server.js | 154 ++++++++--------------- 2 files changed, 88 insertions(+), 146 deletions(-) diff --git a/public/scripts/extensions/audio/index.js b/public/scripts/extensions/audio/index.js index 74f6692de..074f58f44 100644 --- a/public/scripts/extensions/audio/index.js +++ b/public/scripts/extensions/audio/index.js @@ -1,16 +1,8 @@ /* -TODO: - - Emotion-based BGM - - per character bgms OK - - simple fade out/in when switching OK - - cross fading ? - - BGM switch cooldown - - group chat +Ideas: + - cross fading between bgm / start a different time - Background based ambient sounds - - global sounds OK - - global overides ? - import option on background UI ? - - One UI with different mixing options OK - Allow background music edition using background menu - https://fontawesome.com/icons/music?f=classic&s=solid - https://codepen.io/noirsociety/pen/rNQxQwm @@ -18,13 +10,17 @@ TODO: */ import { saveSettingsDebounced } from "../../../script.js"; -import { getContext, getApiUrl, extension_settings, doExtrasFetch, ModuleWorkerWrapper, modules } from "../../extensions.js"; +import { getContext, extension_settings, ModuleWorkerWrapper } from "../../extensions.js"; export { MODULE_NAME }; const MODULE_NAME = 'Audio'; const DEBUG_PREFIX = "