WASAPI 独占模式输出插件,适用于 foobar2000 v2.0+(仅 64-bit)。
WASAPI exclusive-mode output plugin for foobar2000 v2.0+ (64-bit only).
绕过 Windows 混音器,实现比特精确的音频输出。 Provides bit-exact audio output by bypassing the Windows audio mixer.
双击 foo_out_wasapi_x64.fb2k-component,或将内部的 foo_out_wasapi_x64.dll 解压到:
Double-click foo_out_wasapi_x64.fb2k-component, or extract the DLL to:
foobar2000\user-components\foo_out_wasapi_x64\
└── foo_out_wasapi_x64.dll
然后进入 Preferences → Playback → Output,选择以下之一: Then go to Preferences → Playback → Output and select one of:
| 模块 Module | 说明 Description |
|---|---|
WASAPI (exclusive) - Push |
推模式 — 兼容所有设备 / Compatible with all devices |
WASAPI (exclusive) - Event |
事件驱动 — 更低延迟,依赖设备支持 / Lower latency, device-dependent |
- Visual Studio 2022(勾选 Desktop development with C++ 工作负载)
- Windows SDK 10.0+
- foobar2000 SDK 2025-03-07(下载后解压到
sdk_official/)
# 解压 SDK 到 sdk_official/
# Extract SDK to sdk_official/
7z x SDK-2025-03-07.7z -osdk_official
# 编译 Release x64
msbuild foo_out_wasapi_x64.vcxproj /p:Configuration=Release /p:Platform=x64输出产物 Output: Release\foo_out_wasapi_x64\foo_out_wasapi_x64.dll
- 独占模式 Exclusive mode — 完全控制音频设备,绕过系统混音器 Takes full control of the audio device, bypasses the Windows mixer
- 比特精确 Bit-perfect — 不做采样率转换,不经过系统音效 No sample rate conversion, no system audio effects
- 格式严格 Format-strict — 硬件不支持当前格式时报错,而非偷偷降采样 Reports error if device doesn't support the exact format, rather than silently downsampling
- 缓冲区对齐 Buffer alignment — 自动按设备周期对齐缓冲区时长,保证兼容性 Automatically aligns buffer duration to the device's period for maximum compatibility
如果播放时出现声音断裂或爆音,请尝试调整 Preferences → Playback → Output → Buffer length(缓冲时间长度):
If you experience audio stuttering or crackling, try adjusting the Buffer length setting under Preferences → Playback → Output.
蓝牙耳机通常需要缩短缓冲(如 50ms)才能正常播放;其他设备也可能需要根据实际情况调整。 For Bluetooth headphones, shortening the buffer (e.g. 50ms) usually resolves the issue. Try different values to find what works for your device.
原因:WASAPI 独占模式下缓冲区由驱动周期决定。蓝牙 A2DP 的延迟较高,过大的缓冲反而可能导致 fb2k 的写入时机与蓝牙的传输周期错位。缩短缓冲让数据更及时地送达驱动。 Why: In exclusive mode the buffer aligns to the device driver's period. Bluetooth A2DP has high inherent latency; a larger buffer can cause timing misalignment with the Bluetooth transmission cycle. Shortening the buffer helps data reach the driver more promptly.
MIT