Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::reload::DspReloadSwapUnit Class Reference

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).

Detailed Description

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.

Constructor & Destructor Documentation

◆ DspReloadSwapUnit()

pulp::format::reload::DspReloadSwapUnit::DspReloadSwapUnit ( ReloadSession & session,
std::string library_path,
std::string stage_name = "dsp" )
inline

Member Function Documentation

◆ last_outcome()

const ReloadOutcome & pulp::format::reload::DspReloadSwapUnit::last_outcome ( ) const
inline

The outcome of the most recent apply() (valid after the transaction runs).

◆ name()

std::string pulp::format::reload::DspReloadSwapUnit::name ( ) const
inlineoverridevirtual

Human-readable identity, surfaced in LiveSwapResult::failed_stage.

Implements pulp::format::reload::SwapUnit.

◆ to_stage()

SwapStage pulp::format::reload::DspReloadSwapUnit::to_stage ( )
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.


The documentation for this class was generated from the following file: