JBL Heartbeat

v1.0

一个简单的系统托盘工具,通过定时发送 40Hz 低频音 防止 JBL 等品牌电脑音响自动进入休眠状态。音频持续时间、音量和间隔时间均可自定义。

A simple system tray utility that prevents JBL and other brand speakers from auto-sleeping by sending periodic low-frequency audio (40Hz). Fully customizable interval, duration, and volume.

本项目完全免费开源,MIT 许可证
Download

Windows 7+ · 单文件 exe · 无需安装
运行后自动最小化到系统托盘

View on GitHub

Why / 为什么需要这个

JBL 等品牌的电脑音响为了省电,会在一段时间没有音频输出后自动进入休眠状态。当有新的声音时,音响需要"唤醒",这会导致声音开头的一小段被吃掉,影响体验。

这个工具通过定期发送人耳几乎听不到的低频音 (40Hz),让音响保持活动状态,避免休眠。

Features / 功能

Parameters / 可配置参数

间隔时间 两次心跳之间的间隔,5-300 秒,默认 60 秒
持续时间 每次心跳的持续时间,0.5-10 秒,默认 2 秒
音量 心跳声音的音量,10%-100%,默认 70%

Tray Menu / 托盘菜单

Tech Stack / 技术栈

C++ Win32 API CMake winmm.lib

Build / 构建

使用 CMake 构建:

mkdir build
cd build
cmake ..
cmake --build .

或使用 Visual Studio 开发者命令提示符直接编译

Requirements / 系统要求