cleaning up audio module
This commit is contained in:
parent
ca9e6583c6
commit
f492da671e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue