Skip to content

Releases

AudioRouter v0.4.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 07:44
143fe57

Full Changelog: v0.4.0...v0.4.1

AudioRouter v0.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 17:25
cc31180

架构重构:单 exe 多线程

控制面板与常驻服务合并成一个 AudioRouter.exe。开发时只需要
cargo run -p audiorouter 一条命令,不用再管两个进程、也不用保证同目录。

线程 职责
主线程 托盘图标、全局热键、Win32 消息循环
服务线程 路由启停、设备枚举、状态汇总
UI 线程 WinUI 3 控制面板(STA 公寓,按需创建)

路由控制特意不放主线程:Router::start() 最多要等 5 秒才等到音频 worker
就绪,放主线程会把托盘卡死。

修复

  • 托盘「显示 / 隐藏」关不掉窗口:该菜单项此前只实现了显示。根因是
    FindWindowW 找不到 WinUI 3 的窗口(class 是 WinUIDesktopWin32WindowClass),
    旧代码因此既显示不了面板、也激活不了已开的面板——点托盘图标会毫无反应。
    现在窗口查找统一走 EnumWindows。
  • 托盘退出后留下孤儿面板并弹「服务连接已断开」:退出只杀了服务进程,
    控制面板变成连不上服务的孤儿。现在整个应用是一个进程,退出即全退。

其它变化

  • 删掉跨进程命名管道,改用进程内命令总线(app_core::bus)
  • 控制面板按需创建:开机自启 /「启动时最小化」时不加载 Windows App SDK,
    省掉约 120 MB 常驻内存;点托盘图标时才创建窗口
  • 「关闭到托盘」回到经典语义:关窗口 / Ctrl+W 隐藏到托盘,托盘、路由与全局
    热键继续运行;关掉该开关则关窗口即退出应用
  • 界面与服务线程共享同一份配置,消除了读写竞态

⚠ 升级注意

  • 可执行文件更名为 AudioRouter.exe(原 winui3_gui.exe)。安装包会
    自动清理旧版本的 winui3_gui.exe 与 audiorouter_service.exe
  • 开机自启的注册表项在首次启动时自动指向新 exe

安装包(二选一)

  • AudioRouter-Setup-0.4.0-x64.exe —— 自包含,目标机器无需安装 Windows App Runtime
  • AudioRouter-Setup-0.4.0-x64-fd.exe —— 框架依赖,需系统已装 Windows App Runtime

AudioRouter v0.3.17

Choose a tag to compare

@github-actions github-actions released this 17 Nov 15:27
dca5cca

Full Changelog: v0.3.16...v0.3.17

AudioRouter v0.3.16

Choose a tag to compare

@github-actions github-actions released this 17 Nov 11:13
d03e982

Full Changelog: v0.3.15...v0.3.16

AudioRouter v0.3.15

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:37
243a4af

Full Changelog: v0.3.14...v0.3.15

AudioRouter v0.3.14

Choose a tag to compare

@github-actions github-actions released this 16 Nov 09:23
fdb243f

Full Changelog: v0.3.13...v0.3.14

AudioRouter v0.3.13

Choose a tag to compare

@github-actions github-actions released this 15 Nov 20:29
4bd4796

Full Changelog: v0.3.12...v0.3.13

AudioRouter v0.3.12

Choose a tag to compare

@github-actions github-actions released this 15 Nov 18:43
527ef67

Full Changelog: v0.3.11...v0.3.12

AudioRouter v0.3.11

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:34

Full Changelog: v0.3.10...v0.3.11

AudioRouter v0.3.10

Choose a tag to compare

@fangfuzha fangfuzha released this 21 Aug 15:15

重构变更

  • 移除 callcomapi 依赖:用自实现的 ComApartment RAII 替代 callcomapi::with_com,减少外部依赖
  • 清理 ComSend 包装层:ComSend 只是纯约定无编译器强制的包装,已全部移除,简化代码
  • watcher.rs 简化:register_notification / unregister_notification 改为传引用,返回 Result<()>
  • device.rs 优化:用 HSTRING::from 替代 OsStr + encode_wide 手动编码
  • utils.rs 优化:用 PWSTR::to_string() 替代手动 UTF-16 裸指针操作
  • autostart.rs 修复:适配 windows 0.62 的 Option<u32> 参数类型

Full Changelog: v0.3.9...v0.3.10