Adapts a ReloadSession reload-from-library to a SwapUnit. More...
#include <reload_swap_units.hpp>
Public Member Functions | |
| DspReloadSwapUnit (ReloadSession &session, std::string library_path, std::string stage_name="dsp") | |
| std::string | name () const override |
| Human-readable identity, surfaced in LiveSwapResult::failed_stage. | |
| SwapStage | to_stage () override |
| Build the stage for this unit's pending swap, capturing the current state for rollback. | |
| const ReloadOutcome & | last_outcome () const |
| The outcome of the most recent apply() (valid after the transaction runs). | |
Adapts a ReloadSession reload-from-library to a SwapUnit.
The DSP stage is ordered LAST in a UX+DSP transaction (the hardest to un-swap), so its rollback is never invoked — and it needs none: ReloadSession::reload is atomic (a rejected candidate leaves the live processor untouched). The unit records the last outcome so the caller can read the reject reason.
|
inline |
|
inline |
The outcome of the most recent apply() (valid after the transaction runs).
|
inlineoverridevirtual |
Human-readable identity, surfaced in LiveSwapResult::failed_stage.
Implements pulp::format::reload::SwapUnit.
|
inlineoverridevirtual |
Build the stage for this unit's pending swap, capturing the current state for rollback.
Called once per transaction, before any stage is applied.
Implements pulp::format::reload::SwapUnit.