Files
2026-10-28 23:48:08 +08:00

14 KiB
Raw Permalink Blame History

Minixer (zh-CN)

轻量级单通道独立音频混音台(Standalone Mixer)。

Minixer 常驻于系统后台,可将硬件麦克风输入经 VST3 插件链(EQ、Compressor、Gate 等)实时处理后,输出至任意 Windows 音频设备(如 VB-Audio Virtual Cable),供 Discord、Zoom、OBS、游戏等第三方软件作为虚拟麦克风输入。

核心功能

  • 独立输入 / 输出设备选择:支持 WASAPI、DirectSound 等 Windows 音频驱动,可独立指定输入/输出设备、采样率与缓冲区大小。
  • VST3 插件机架:12 个插件插槽,支持 64-bit / 32-bit VST3 插件动态加载、旁通、删除。
  • 插件崩溃隔离(进程级沙盒):每个插件实例运行在独立的 PluginHost64.exe / PluginHost32.exe 子进程中,单个插件崩溃自动旁通,不影响主程序。
  • 实时电平监测:输入 / 输出 Peak / RMS 电平表,dBFS 刻度,过载预警。
  • 通道条控制:Input Trim、Pan、Stereo、Output Fader,支持 dB 刻度微调。
  • 预设系统:保存 / 加载整套插件链状态与通道条参数。
  • 插件扫描与黑名单:后台扫描 VST3 插件目录,崩溃/超时插件自动加入黑名单并跳过。
  • 系统常驻:最小化至系统托盘,支持开机自启、全局快捷键、配置持久化。

技术栈

  • JUCE 8
  • C++17
  • CMake
  • Visual Studio 2022
  • Windows 10 / 11

构建步骤(CMake)

1. 准备 JUCE

下载并安装 JUCE 8 到本机任意目录。

本项目不包含 JUCE 源码,请自行准备。

2. 配置 JUCE 路径

以下任一方式均可:

  • 设置环境变量:JUCE_DIR=<JUCE 根目录>
  • 配置时传入:-D JUCE_DIR=<JUCE 根目录>
  • 将 JUCE 放在项目根目录附近的常见位置,如 ../JUCE、../../JUCE

3. 生成并编译

# 如果 JUCE / ASIO SDK 不在默认搜索路径,配置时通过 -D 传入:
# cmake -B build -S . -A x64 -T host=x64 `
#       -D JUCE_DIR="D:\ruanjian\JUCE" `
#       -D ASIO_DIR="D:\CodePacks\Store\SDK\asiosdk_2.3.3_2019-06-14"

# x64 Debug(主程序 + 64 位 PluginHost)
cmake -B build -S . -A x64 -T host=x64
cmake --build build --config Debug

# x64 Release(推荐发布时使用)
cmake -B build -S . -A x64 -T host=x64
cmake --build build --config Release

# 32 位 PluginHost Debug(用于加载 32-bit VST3 插件)
cmake -B build-x86 -S . -A Win32 -T host=x64
cmake --build build-x86 --target PluginHost --config Debug

# 32 位 PluginHost Release
cmake -B build-x86 -S . -A Win32 -T host=x64
cmake --build build-x86 --target PluginHost --config Release

构建完成后:

  • build/Minixer_artefacts/Debug/Minixer.exe
  • build/Minixer_artefacts/Debug/PluginHost64.exe
  • build-x86/PluginHost_artefacts/Debug/PluginHost32.exe
  • build/Minixer_artefacts/Release/Minixer.exe
  • build/Minixer_artefacts/Release/PluginHost64.exe
  • build-x86/PluginHost_artefacts/Release/PluginHost32.exe

CMake 构建脚本会在 PluginHost 编译完成后自动将其复制到 Minixer 输出目录。

4. 运行

确保 PluginHost64.exe 与 PluginHost32.exe 与 Minixer.exe 位于同一目录,然后运行 Minixer.exe。

目录结构

Minixer/
├── Source/                 # 项目源码
│   ├── Components/         # UI 组件
│   ├── IPC/                # 进程间通信抽象与 Windows 实现
│   ├── LookAndFeel/        # 自定义外观
│   ├── Plugin/             # 插件宿主、机架、桥接节点
│   ├── PluginHost/         # PluginHost 子进程源码
│   ├── PluginScanner/      # 自主 VST3 扫描器
│   └── Settings/           # 应用设置与快捷键
├── JuceLibraryCode/        # JUCE 统一包含头(JuceHeader.h,CMake 构建使用)
├── assets/                 # 图标资源
├── docs/                   # 设计文档
├── CMakeLists.txt          # CMake 构建配置
└── README.md

注意事项

  • 版本号统一在 CMakeLists.txt 顶部一处维护:

    • MINIXER_VERSION_MAJOR / MINIXER_VERSION_MINOR / MINIXER_VERSION_PATCH —— 数字版本,派生 MINIXER_VERSION(x.y.z),用于 Windows PE 文件版本与 ProjectInfo::versionNumber。
    • MINIXER_DISPLAY_VERSION —— UI / About 展示用版本字符串。
    • 代码侧(About 窗口、PluginHost 版本)通过编译宏 MINIXER_DISPLAY_VERSION / MINIXER_VERSION_* 自动取用;JuceLibraryCode/JuceHeader.h 中保留的兜底值仅供非 CMake 编译参考,正常 CMake 构建不会用到。
  • 发布新版本时只需修改 CMakeLists.txt 顶部的版本段,其余自动同步。

  • 发布时请使用 --config Release 构建,否则会产生体积巨大的 Debug 二进制并依赖 MSVCP140D.dll 等调试运行库。

  • 32 位 PluginHost 需单独创建 Win32 构建目录(如 build-x86),不能在同一 x64 构建目录中生成。

  • 本项目不包含 ASIO SDK,默认使用 WASAPI / DirectSound 音频驱动。如需 ASIO 支持,请自行下载 Steinberg ASIO SDK 并配置项目。

  • 项目仅使用 CMake 构建。原 Projucer 工程文件(Minixer.jucer)因长期未同步、缺少 PluginHost 子进程与 PluginScanner 目标且只声明单一 Minixer 目标,已弃用并删除;如需参考可从 git 历史中找回。

  • 项目仅支持 VST3 插件,不支持 VST2 / AAX。

  • 运行时需要 PluginHost64.exe 与 PluginHost32.exe 与主程序位于同一目录,用于加载 64-bit / 32-bit 插件的沙盒子进程。

数据与配置目录

Minixer 的所有用户数据默认存放在 Windows 用户应用数据目录下:

%AppData%\Minixer\

完整路径示例:C:\Users\<用户名>\AppData\Roaming\Minixer\

该目录下主要包含:

文件/目录 说明
Minixer.settings 应用偏好设置(窗口状态、快捷键、搜索范围、插件启用状态等)
Presets/ 用户保存的预设文件(.minixer)
PluginList.xml 扫描到的 VST3 插件列表
PluginBlacklist.json 扫描/加载时崩溃或超时的插件黑名单
DeadMansPedal.txt 扫描崩溃保护文件
AudioDeviceState.xml 音频设备状态

版本兼容性提示:当升级/降级大版本或遇到偏好设置、预设、插件列表异常时,建议先关闭 Minixer,然后备份并删除 %AppData%\Minixer 目录,再重新启动软件。程序会自动重建默认配置,随后可重新扫描插件并导入需要的预设。

开源协议

GNU Affero General Public License v3.0 (AGPLv3)

详见项目根目录 LICENSE 文件。


Minixer (English)

A lightweight single-channel standalone audio mixer.

Minixer runs in the background, taking hardware microphone input through a VST3 plugin chain (EQ, Compressor, Gate, etc.) and routing the processed signal to any Windows audio device (e.g. VB-Audio Virtual Cable). Third-party applications such as Discord, Zoom, OBS, and games can then use it as a virtual microphone input.

Features

  • Independent input / output device selection: supports WASAPI and DirectSound drivers; input and output devices, sample rate, and buffer size can be configured independently.
  • VST3 plugin rack: 12 plugin slots with dynamic load, bypass, and removal for both 64-bit and 32-bit VST3 plugins.
  • Plugin crash isolation (process-level sandbox): each plugin instance runs in a separate PluginHost64.exe or PluginHost32.exe child process. Crashes are isolated and the slot is automatically bypassed without affecting the main mixer.
  • Real-time level metering: input / output Peak / RMS meters with dBFS scale and clip warning.
  • Channel strip controls: Input Trim, Pan, Stereo, and Output Fader with fine dB-scale adjustment.
  • Preset system: save and load the entire plugin chain state together with channel strip parameters.
  • Plugin scanning and blacklist: scan VST3 plugin directories in the background; plugins that crash or time out are automatically added to a blacklist and skipped.
  • System resident: minimize to the Windows system tray, with startup launch, global shortcuts, and persistent configuration.

Tech Stack

  • JUCE 8
  • C++17
  • CMake
  • Visual Studio 2022
  • Windows 10 / 11

Build Instructions (CMake)

1. Prepare JUCE

Download and install JUCE 8 to any location on your machine.

This project does not include the JUCE source code. Please prepare it separately.

2. Configure the JUCE path

Use any of the following methods:

  • Set environment variable: JUCE_DIR=<JUCE root directory>
  • Pass during configuration: -D JUCE_DIR=<JUCE root directory>
  • Place JUCE in a common location near the project root, such as ../JUCE or ../../JUCE

3. Generate and build

# If JUCE / ASIO SDK are not in the default search paths, pass them via -D:
# cmake -B build -S . -A x64 -T host=x64 `
#       -D JUCE_DIR="D:\ruanjian\JUCE" `
#       -D ASIO_DIR="D:\CodePacks\Store\SDK\asiosdk_2.3.3_2019-06-14"

# x64 Debug (main app + 64-bit PluginHost)
cmake -B build -S . -A x64 -T host=x64
cmake --build build --config Debug

# x64 Release (recommended for distribution)
cmake -B build -S . -A x64 -T host=x64
cmake --build build --config Release

# 32-bit PluginHost Debug (for loading 32-bit VST3 plugins)
cmake -B build-x86 -S . -A Win32 -T host=x64
cmake --build build-x86 --target PluginHost --config Debug

# 32-bit PluginHost Release
cmake -B build-x86 -S . -A Win32 -T host=x64
cmake --build build-x86 --target PluginHost --config Release

After building:

  • build/Minixer_artefacts/Debug/Minixer.exe
  • build/Minixer_artefacts/Debug/PluginHost64.exe
  • build-x86/PluginHost_artefacts/Debug/PluginHost32.exe
  • build/Minixer_artefacts/Release/Minixer.exe
  • build/Minixer_artefacts/Release/PluginHost64.exe
  • build-x86/PluginHost_artefacts/Release/PluginHost32.exe

The CMake build script automatically copies PluginHost to the Minixer output directory after compilation.

4. Run

Make sure PluginHost64.exe and PluginHost32.exe are in the same directory as Minixer.exe, then run Minixer.exe.

Directory Structure

Minixer/
├── Source/                 # Project source code
│   ├── Components/         # UI components
│   ├── IPC/                # IPC abstractions and Windows implementations
│   ├── LookAndFeel/        # Custom look-and-feel
│   ├── Plugin/             # Plugin hosting, rack, and bridge nodes
│   ├── PluginHost/         # PluginHost child-process source
│   ├── PluginScanner/      # Standalone VST3 scanner
│   └── Settings/           # Application settings and shortcuts
├── JuceLibraryCode/        # Unified JUCE include header (JuceHeader.h, used by CMake)
├── assets/                 # Icon resources
├── docs/                   # Design documents
├── CMakeLists.txt          # CMake build configuration
└── README.md

Notes

  • The version number is maintained in a single place at the top of CMakeLists.txt:

    • MINIXER_VERSION_MAJOR / MINIXER_VERSION_MINOR / MINIXER_VERSION_PATCH — numeric version, derives MINIXER_VERSION (x.y.z) used for the Windows PE file version and ProjectInfo::versionNumber.
    • MINIXER_DISPLAY_VERSION — display string used by the UI / About window.
    • The code side (About window, PluginHost version) picks these up automatically via the compile-time macros MINIXER_DISPLAY_VERSION / MINIXER_VERSION_*; the fallback values kept in JuceLibraryCode/JuceHeader.h are for non-CMake builds only and are not used by a normal CMake build.
  • To release a new version, only edit the version block at the top of CMakeLists.txt — everything else updates automatically.

  • Always build with --config Release for distribution. Debug builds produce much larger binaries and depend on debug runtime DLLs such as MSVCP140D.dll.

  • The 32-bit PluginHost requires a separate Win32 build directory (e.g. build-x86); it cannot be produced from an x64 build directory.

  • This project does not include the ASIO SDK and uses WASAPI / DirectSound by default. Add the Steinberg ASIO SDK manually if ASIO support is required.

  • The project is built with CMake only. The old Projucer project file (Minixer.jucer) has been removed because it was not updated for several releases and lacked the PluginHost subprocess and PluginScanner targets (it declared only a single Minixer target); it can still be recovered from git history if needed.

  • Only VST3 plugins are supported; VST2 / AAX are not supported.

  • At runtime, PluginHost64.exe and PluginHost32.exe must be in the same directory as the main executable, as they are used to sandbox 64-bit and 32-bit plugins.

Data and Configuration Directory

All Minixer user data is stored in the Windows user application data directory:

%AppData%\Minixer\

Full example path: C:\Users\<Username>\AppData\Roaming\Minixer\

The directory contains:

File / Directory Description
Minixer.settings Application preferences (window state, shortcuts, search mode, enabled plugins, etc.)
Presets/ User-saved preset files (.minixer)
PluginList.xml Scanned VST3 plugin list
PluginBlacklist.json Blacklist of plugins that crashed or timed out during scan/load
DeadMansPedal.txt Scan crash protection file
AudioDeviceState.xml Audio device state

Version compatibility note: When upgrading/downgrading between major versions or if you encounter corruption in preferences, presets, or the plugin list, close Minixer, back up and delete the %AppData%\Minixer directory, then restart the application. It will recreate the default configuration; you can then rescan plugins and re-import any presets you need.

License

GNU Affero General Public License v3.0 (AGPLv3)

See the LICENSE file in the project root for the full text.