新的音频系统

This commit is contained in:
草莓 2025-01-18 17:49:44 +08:00
parent 64c5310da5
commit 98af833c2e
10 changed files with 3595 additions and 1758 deletions

View File

@ -1 +1 @@
{"viewportLoc":[0,0],"editorLastFloorId":"jiuguan"}
{"viewportLoc":[0,0],"editorLastFloorId":"street02"}

File diff suppressed because it is too large Load Diff

View File

@ -89,7 +89,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_range": "editor.mode.checkUnique(thiseval)",
"_directory": "./project/bgms/",
"_transform": (function (one) {
if (one.endsWith('.mp3') || one.endsWith('.ogg') || one.endsWith('.wav') || one.endsWith('.m4a') || one.endsWith('.flac'))
if (one.endsWith('.mp3') || one.endsWith('.ogg') || one.endsWith('.wav') || one.endsWith('.m4a') || one.endsWith('.flac') || one.endsWith('.opus'))
return one;
return null;
}).toString(),
@ -147,7 +147,7 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_type": "material",
"_directory": "./project/bgms/",
"_transform": (function (one) {
if (one.endsWith('.mp3') || one.endsWith('.ogg') || one.endsWith('.wav') || one.endsWith('.m4a') || one.endsWith('.flac'))
if (one.endsWith('.mp3') || one.endsWith('.ogg') || one.endsWith('.wav') || one.endsWith('.m4a') || one.endsWith('.flac') || one.endsWith('.opus'))
return one;
return null;
}).toString(),

View File

@ -213,6 +213,9 @@
</div>
<div id="ui-editor"></div>
<!-- injection -->
<script src="libs/thirdparty/ogg-vorbis-decoder.min.js"></script>
<script src="libs/thirdparty/ogg-opus-decoder.min.js"></script>
<script src="libs/thirdparty/codec-parser.min.js"></script>
<script src="libs/thirdparty/lz-string.min.js"></script>
<script src="libs/thirdparty/priority-queue.min.js"></script>
<script src="libs/thirdparty/localforage.min.js"></script>

1
libs/thirdparty/codec-parser.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
libs/thirdparty/ogg-opus-decoder.min.js vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
project/bgms/op.opus Normal file

Binary file not shown.

View File

@ -901,6 +901,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"Blind_Alley.mp3",
"Crawler.mp3",
"op.mp3",
"op.opus",
"theme.mp3"
],
"sounds": [

File diff suppressed because it is too large Load Diff