🐞 fix: 修复网页端和快捷键无法调整音量的问题

This commit is contained in:
algerkong
2025-06-23 20:58:08 +08:00
parent d739a6701b
commit 95c255d2ba
2 changed files with 14 additions and 7 deletions
+2
View File
@@ -802,6 +802,8 @@ class AudioService {
// 立即设置音量
this.gainNode.gain.cancelScheduledValues(this.context!.currentTime);
this.gainNode.gain.setValueAtTime(linearVolume, this.context!.currentTime);
} else {
this.currentSound?.volume(linearVolume);
}
// 保存值