How 0xv1nc3nt/lighthost works
Light Host is a tray/menu-bar VST3/AU host. Its main workflow is to discover or select plugins, place them in a serial audio chain, and process audio between the chosen device and output; users manage the chain and saved configurations through the tray menu or Control Panel. The sampled code shows the chain, persistence, UI callbacks, and denormal-safe graph. Audio-device and plugin hosting capabilities are documented, but their full runtime wiring is not shown in the excerpts.
Main entry points: IconMenu.cpp Chain Control · ControlPanelWindow.cpp Control Panel · IconMenu.h Audio Graph · PluginChainListBox.cpp Chain List
Components 13
Application
- Host Startup
Source/HostStartup.cpp
User Interface
- Tray Menu
Source/IconMenu.cpp - Control Panel
Source/ControlPanelWindow.cpp - Chain List
Source/PluginChainListBox.cpp - Plugin Windows
Source/PluginWindow.cpp
Audio Hosting
- Plugin Catalog
Source/IconMenu.cpp - Audio Graph
Source/IconMenu.h
Chain and Settings
- Chain Control
Source/IconMenu.cpp - Chain Configurations
Source/IconMenu.cpp - Saved Settings
Source/HostStartup.cpp
Other components
- User
- Hosted Plugins
- Audio Devices
Connections 16
- User → Tray Menu: uses
readme.md - User → Control Panel: manages chain
readme.md - Host Startup → Tray Menu: creates
Source/HostStartup.cpp - Control Panel → Chain Control: invokes actions
Source/ControlPanelWindow.cpp - Tray Menu → Chain Control: dispatches actions
Source/IconMenu.cpp - Control Panel → Chain List: displays chain
Source/ControlPanelWindow.cpp - Chain List → Chain Control: sends edit requests
Source/PluginChainListBox.cpp - Control Panel → Plugin Catalog: selects plugins
Source/ControlPanelWindow.cpp - Tray Menu → Plugin Catalog: selects plugins
Source/IconMenu.cpp - Chain Control → Audio Graph: builds chain
Source/IconMenu.cpp - Audio Graph → Hosted Plugins: hosts serially
readme.md - Audio Devices → Audio Graph: supplies audio
readme.md - Audio Graph → Audio Devices: outputs audio
readme.md - Chain Control → Saved Settings: loads and saves
Source/IconMenu.cpp - Chain Control → Chain Configurations: imports and exports
Source/IconMenu.cpp - Chain Control → Plugin Windows: opens editors