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

Coalesces StateStore presentation-name changes and republishes only the affected stable parameter IDs from the host's main thread. More...

#include <au_v2_common.hpp>

Public Types

using Notify = std::function<void(state::ParamID)>

Public Member Functions

 ParameterDisplayNamePublisher ()
 ~ParameterDisplayNamePublisher ()
 ParameterDisplayNamePublisher (const ParameterDisplayNamePublisher &)=delete
ParameterDisplayNamePublisher & operator= (const ParameterDisplayNamePublisher &)=delete
void start (state::StateStore &store, Notify notify)
 Snapshot the current stable parameter list and begin the paced main-thread poll.
void stop () noexcept
 Stop future polls and retire queued callbacks without touching the host.
void poll_main_thread ()
 Drain once on the caller's control/main thread.

Detailed Description

Coalesces StateStore presentation-name changes and republishes only the affected stable parameter IDs from the host's main thread.

The publisher owns a paced main-thread poll rather than observing names from an audio callback. Polling and host notification may allocate, lock, and re-enter the host; none of that work is reachable from Render() or ProcessBufferLists().

Member Typedef Documentation

◆ Notify

Constructor & Destructor Documentation

◆ ParameterDisplayNamePublisher() [1/2]

pulp::format::au::ParameterDisplayNamePublisher::ParameterDisplayNamePublisher ( )

◆ ~ParameterDisplayNamePublisher()

pulp::format::au::ParameterDisplayNamePublisher::~ParameterDisplayNamePublisher ( )

◆ ParameterDisplayNamePublisher() [2/2]

pulp::format::au::ParameterDisplayNamePublisher::ParameterDisplayNamePublisher ( const ParameterDisplayNamePublisher & )
delete

Member Function Documentation

◆ operator=()

ParameterDisplayNamePublisher & pulp::format::au::ParameterDisplayNamePublisher::operator= ( const ParameterDisplayNamePublisher & )
delete

◆ poll_main_thread()

void pulp::format::au::ParameterDisplayNamePublisher::poll_main_thread ( )

Drain once on the caller's control/main thread.

The paced poll and control-thread adapter entrypoints share this operation.

◆ start()

void pulp::format::au::ParameterDisplayNamePublisher::start ( state::StateStore & store,
Notify notify )

Snapshot the current stable parameter list and begin the paced main-thread poll.

Repeated calls replace the prior publication target.

◆ stop()

void pulp::format::au::ParameterDisplayNamePublisher::stop ( )
noexcept

Stop future polls and retire queued callbacks without touching the host.


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