mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 17:16:08 +08:00
fix: 标题曲不播放
This commit is contained in:
parent
f64cfb2c14
commit
e6ac3197e1
@ -3038,13 +3038,6 @@ control.prototype.getPlayingSounds = function (name) {
|
||||
////// 检查bgm状态 //////
|
||||
control.prototype.checkBgm = function () {
|
||||
// see src/module/fallback/audio.ts
|
||||
return;
|
||||
const bgm = Mota.require('var', 'bgm');
|
||||
if (bgm.disable) {
|
||||
bgm.pause();
|
||||
} else if (!bgm.playing) {
|
||||
bgm.changeTo(bgm.now ?? main.startBgm);
|
||||
}
|
||||
};
|
||||
|
||||
///// 设置屏幕放缩 //////
|
||||
|
@ -48,7 +48,7 @@ interface Bgm {
|
||||
|
||||
const list = bgm as Partial<Record<BgmIds, Bgm>>;
|
||||
|
||||
const selected = ref<BgmIds>('title.mp3');
|
||||
const selected = ref<BgmIds>('title.opus');
|
||||
|
||||
const content = computed(() => {
|
||||
return eval('`' + splitText(list[selected.value]!.desc) + '`');
|
||||
|
@ -328,7 +328,7 @@ onMounted(async () => {
|
||||
resize();
|
||||
|
||||
soundChecked.value = mainSetting.getValue('audio.bgmEnabled', true);
|
||||
bgmController.play('title.mp3');
|
||||
bgmController.play('title.opus');
|
||||
|
||||
start.style.opacity = '1';
|
||||
if (played) {
|
||||
|
Loading…
Reference in New Issue
Block a user