Skip to content

Commit e369f28

Browse files
committed
🐞 fix: 修改音频暂停逻辑
1 parent 47e877d commit e369f28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/player/PlayerController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class PlayerController {
123123
}
124124
try {
125125
// 停止当前播放
126-
audioManager.stop();
126+
audioManager.pause();
127127
musicStore.playSong = playSongData;
128128
// 重置播放进度
129129
statusStore.currentTime = 0;
@@ -163,7 +163,7 @@ class PlayerController {
163163
const audioManager = useAudioManager();
164164

165165
// 停止当前播放并清理
166-
audioManager.stop();
166+
// audioManager.stop();
167167

168168
// 设置基础参数
169169
audioManager.setVolume(statusStore.playVolume);
@@ -511,7 +511,7 @@ class PlayerController {
511511

512512
// 先暂停当前播放
513513
const audioManager = useAudioManager();
514-
audioManager.stop();
514+
audioManager.pause();
515515

516516
// 私人FM
517517
if (statusStore.personalFmMode) {

0 commit comments

Comments
 (0)