fix: 标题曲不播放

This commit is contained in:
unanmed 2025-01-18 22:56:06 +08:00
parent f64cfb2c14
commit e6ac3197e1
3 changed files with 2 additions and 9 deletions

View File

@ -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);
}
};
///// 设置屏幕放缩 //////

View File

@ -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) + '`');

View File

@ -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) {