[PR #888] [MERGED] 尝试支持类似Apple Music的AutoMix[Beta] #707

Closed
opened 2026-02-27 07:12:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/888
Author: @kazukokawagawa
Created: 2/14/2026
Status: Merged
Merged: 2/18/2026
Merged by: @kazukokawagawa

Base: devHead: dev-mix


📝 Commits (10+)

  • 6ab99d9 feat(player): 新增自动混音功能
  • 6ce2da4 feat(native): 为音频分析添加 TypeScript 类型定义并优化导入
  • 3a22942 fix(electron): 修复原生模块加载失败时的音频分析错误
  • fb53530 feat(设置): 新增自动混音配置选项
  • 791068e feat(automix): 实现智能音频分析与自动混音功能
  • e809de0 refactor: 统一音频分析接口的命名约定并优化静音检测逻辑
  • bc5b5a6 feat(player): 增强自动混音功能并改进交叉淡入淡出
  • 0efd3be fix: 修复音频分析和播放源数据的安全处理
  • fd55a73 feat(automix): 实现智能自动混音过渡
  • a925b78 feat(player): 在自动混音时根据节拍计算UI切换延迟

📊 Changes

34 files changed (+4638 additions, -220 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 Cargo.lock (+267 -21)
📝 electron.vite.config.ts (+4 -0)
📝 electron/main/database/LocalMusicDB.ts (+35 -0)
📝 electron/main/ipc/ipc-file.ts (+270 -2)
📝 electron/main/ipc/ipc-mac-statusbar.ts (+6 -7)
📝 electron/main/services/LocalMusicService.ts (+13 -1)
📝 electron/main/utils/native-loader.ts (+3 -0)
📝 electron/main/windows/taskbar-lyric-window.ts (+2 -3)
electron/main/workers/audio-analysis.worker.ts (+122 -0)
native/tools/.cargo/config.toml (+3 -0)
📝 native/tools/Cargo.toml (+3 -0)
📝 native/tools/index.d.ts (+64 -0)
📝 native/tools/package.json (+1 -0)
native/tools/src/analysis.rs (+1015 -0)
📝 native/tools/src/lib.rs (+2 -0)
📝 package.json (+2 -1)
📝 pnpm-lock.yaml (+7 -4)
📝 src/components/Player/PlayerComponents/PlayerSpectrum.vue (+54 -0)
📝 src/components/Player/PlayerControl.vue (+195 -5)

...and 14 more files

📄 Description

现在已经处于可用状态了,打上了beta标签和开启告示
仍然需要精确拍数和更精准的计算,但是现在已经可用了,效果没啥问题
有歌曲出问题一般也不会太离谱,至少我还没遇到

可以看着合并了


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/888 **Author:** [@kazukokawagawa](https://github.com/kazukokawagawa) **Created:** 2/14/2026 **Status:** ✅ Merged **Merged:** 2/18/2026 **Merged by:** [@kazukokawagawa](https://github.com/kazukokawagawa) **Base:** `dev` ← **Head:** `dev-mix` --- ### 📝 Commits (10+) - [`6ab99d9`](https://github.com/imsyy/SPlayer/commit/6ab99d9be9c6d82881b11503037d690522d18460) feat(player): 新增自动混音功能 - [`6ce2da4`](https://github.com/imsyy/SPlayer/commit/6ce2da4dfb5f8439f6fd72a8a71b14ba363fff43) feat(native): 为音频分析添加 TypeScript 类型定义并优化导入 - [`3a22942`](https://github.com/imsyy/SPlayer/commit/3a22942676983a50a664c9599568119d74bcc306) fix(electron): 修复原生模块加载失败时的音频分析错误 - [`fb53530`](https://github.com/imsyy/SPlayer/commit/fb535300e424758ba125244448495f2c1a8c1a12) feat(设置): 新增自动混音配置选项 - [`791068e`](https://github.com/imsyy/SPlayer/commit/791068e2e60c77caacf2f8ca00e487164688db2f) feat(automix): 实现智能音频分析与自动混音功能 - [`e809de0`](https://github.com/imsyy/SPlayer/commit/e809de0cdf9b8524de1f34cfe6a1833d58896e75) refactor: 统一音频分析接口的命名约定并优化静音检测逻辑 - [`bc5b5a6`](https://github.com/imsyy/SPlayer/commit/bc5b5a668c0bf847768f9c4c1954aae10b9046a6) feat(player): 增强自动混音功能并改进交叉淡入淡出 - [`0efd3be`](https://github.com/imsyy/SPlayer/commit/0efd3be9b8cc3a1edcd5daf2b7466c85265442c4) fix: 修复音频分析和播放源数据的安全处理 - [`fd55a73`](https://github.com/imsyy/SPlayer/commit/fd55a73234b369a6b6f2c70d92e1fa9e472ce3db) feat(automix): 实现智能自动混音过渡 - [`a925b78`](https://github.com/imsyy/SPlayer/commit/a925b785a3087fa55246cceaaffe0b3d11163f9c) feat(player): 在自动混音时根据节拍计算UI切换延迟 ### 📊 Changes **34 files changed** (+4638 additions, -220 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `Cargo.lock` (+267 -21) 📝 `electron.vite.config.ts` (+4 -0) 📝 `electron/main/database/LocalMusicDB.ts` (+35 -0) 📝 `electron/main/ipc/ipc-file.ts` (+270 -2) 📝 `electron/main/ipc/ipc-mac-statusbar.ts` (+6 -7) 📝 `electron/main/services/LocalMusicService.ts` (+13 -1) 📝 `electron/main/utils/native-loader.ts` (+3 -0) 📝 `electron/main/windows/taskbar-lyric-window.ts` (+2 -3) ➕ `electron/main/workers/audio-analysis.worker.ts` (+122 -0) ➕ `native/tools/.cargo/config.toml` (+3 -0) 📝 `native/tools/Cargo.toml` (+3 -0) 📝 `native/tools/index.d.ts` (+64 -0) 📝 `native/tools/package.json` (+1 -0) ➕ `native/tools/src/analysis.rs` (+1015 -0) 📝 `native/tools/src/lib.rs` (+2 -0) 📝 `package.json` (+2 -1) 📝 `pnpm-lock.yaml` (+7 -4) 📝 `src/components/Player/PlayerComponents/PlayerSpectrum.vue` (+54 -0) 📝 `src/components/Player/PlayerControl.vue` (+195 -5) _...and 14 more files_ </details> ### 📄 Description 现在已经处于可用状态了,打上了beta标签和开启告示 仍然需要精确拍数和更精准的计算,但是现在已经可用了,效果没啥问题 有歌曲出问题一般也不会太离谱,至少我还没遇到 可以看着合并了 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:12:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#707
No description provided.