Expand description
Helper process that loads and runs plugins for plughost.
Applications build a small executable whose main calls run, ship it with the same
plughost version, and pass its path to the plughost crate. The application starts the helper
with <scan|host> <socket name> <token> <parent pid>; the helper connects back for control messages and
completion notifications. PCM and events use prepared shared memory. On Unix, host startup
takes a handle-transfer socket from stdin and restores null stdin before loading plugins.
Standard output remains available to plugins and is never used for protocol messages.
An IPC thread receives requests and passes audio blocks to a processing thread, so a main thread held up by a plugin (a modal dialog, a window being dragged) does not stall audio. The processing thread owns the chain’s processing state and also makes the audio-thread calls plugins need between blocks. The main thread makes every other plugin call, runs the editors, and runs the OS event loop between requests, since plugins’ dialogs, timers, and editors depend on it. Both threads record the slot they are calling in the application’s activity mapping.
Functions§
- run
- Runs the helper until the application disconnects or asks it to shut down.