mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
cleaning up audio module
This commit is contained in:
@ -24,7 +24,6 @@ export { MODULE_NAME };
|
|||||||
const MODULE_NAME = 'Audio';
|
const MODULE_NAME = 'Audio';
|
||||||
const DEBUG_PREFIX = "<Audio module> ";
|
const DEBUG_PREFIX = "<Audio module> ";
|
||||||
const UPDATE_INTERVAL = 1000;
|
const UPDATE_INTERVAL = 1000;
|
||||||
const BGM_UPDATE_COOLDOWN = 10;
|
|
||||||
|
|
||||||
const FALLBACK_EXPRESSION = "neutral";
|
const FALLBACK_EXPRESSION = "neutral";
|
||||||
const DEFAULT_EXPRESSIONS = [
|
const DEFAULT_EXPRESSIONS = [
|
||||||
@ -63,7 +62,7 @@ const AMBIENT_FOLDER = "sounds/ambient/";
|
|||||||
const FALLBACK_BGMS = ["sounds/bgm/bgm_0.mp3"]; // TODO fetch them from folder default and custom
|
const FALLBACK_BGMS = ["sounds/bgm/bgm_0.mp3"]; // TODO fetch them from folder default and custom
|
||||||
|
|
||||||
let characterMusics = {}; // Updated with module workers
|
let characterMusics = {}; // Updated with module workers
|
||||||
let ambientMusics = []; // Initialized only once
|
//let ambientMusics = []; // Initialized only once
|
||||||
|
|
||||||
let currentCharacterBGM = null;
|
let currentCharacterBGM = null;
|
||||||
let currentExpressionBGM = null;
|
let currentExpressionBGM = null;
|
||||||
|
Reference in New Issue
Block a user