diff --git a/public/backgrounds/audio/default/bedroom cyberpunk.mp3 b/public/audio/ambient/bedroom cyberpunk.mp3 similarity index 100% rename from public/backgrounds/audio/default/bedroom cyberpunk.mp3 rename to public/audio/ambient/bedroom cyberpunk.mp3 diff --git a/public/backgrounds/audio/default/cityscape medieval market.mp3 b/public/audio/ambient/cityscape medieval market.mp3 similarity index 100% rename from public/backgrounds/audio/default/cityscape medieval market.mp3 rename to public/audio/ambient/cityscape medieval market.mp3 diff --git a/public/backgrounds/audio/default/cityscape postapoc.mp3 b/public/audio/ambient/cityscape postapoc.mp3 similarity index 100% rename from public/backgrounds/audio/default/cityscape postapoc.mp3 rename to public/audio/ambient/cityscape postapoc.mp3 diff --git a/public/backgrounds/audio/default/great-tree.mp3 b/public/audio/ambient/great-tree.mp3 similarity index 100% rename from public/backgrounds/audio/default/great-tree.mp3 rename to public/audio/ambient/great-tree.mp3 diff --git a/public/backgrounds/audio/default/landscape beach day.mp3 b/public/audio/ambient/landscape beach day.mp3 similarity index 100% rename from public/backgrounds/audio/default/landscape beach day.mp3 rename to public/audio/ambient/landscape beach day.mp3 diff --git a/public/backgrounds/audio/default/landscape winter lake house.mp3 b/public/audio/ambient/landscape winter lake house.mp3 similarity index 100% rename from public/backgrounds/audio/default/landscape winter lake house.mp3 rename to public/audio/ambient/landscape winter lake house.mp3 diff --git a/public/audio/bgm/bgm_0.mp3 b/public/audio/bgm/bgm_0.mp3 new file mode 100644 index 000000000..50fc75483 Binary files /dev/null and b/public/audio/bgm/bgm_0.mp3 differ diff --git a/public/backgrounds/audio/custom/.placeholder b/public/backgrounds/audio/custom/.placeholder deleted file mode 100644 index 2931ea7ef..000000000 --- a/public/backgrounds/audio/custom/.placeholder +++ /dev/null @@ -1 +0,0 @@ -Place your custom background ambient sound file here diff --git a/public/scripts/extensions/audio/index.js b/public/scripts/extensions/audio/index.js index 2638effe9..66db40820 100644 --- a/public/scripts/extensions/audio/index.js +++ b/public/scripts/extensions/audio/index.js @@ -4,6 +4,8 @@ TODO: - per character bgms OK - simple fade out/in when switching OK - cross fading ? + - BGM switch cooldown + - group chat - Background based ambient sounds - global sounds OK - global overides ? @@ -22,18 +24,52 @@ export { MODULE_NAME }; const MODULE_NAME = 'Audio'; const DEBUG_PREFIX = "