Skip to main content

Module hotreload

Module hotreload 

Source
Expand description

Hot reload support for DSP nodes.

Allows reloading node implementations without restarting the audio engine. Useful for rapid development and live coding.

§Architecture

Hot reload works by:

  1. Watching for file changes in node source files
  2. Recompiling the changed node
  3. Loading the new implementation via dynamic library
  4. Swapping the old node with the new one while preserving state

§Limitations

  • Requires nodes to be compiled as dynamic libraries (.dll/.so/.dylib)
  • State preservation is best-effort (depends on state structure compatibility)
  • Not suitable for production use (development only)
  • Requires Rust toolchain to be installed

Structs§

HotReloadConfig
Hot reload configuration.
HotReloadManager
Hot reload manager.
NodeStateSnapshot
Node state snapshot for hot reload.