Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::AudioInputBusProvider Struct Reference

A host-owned, realtime-safe view provider for declared processor input buses. More...

#include <audio_input_provider.hpp>

Public Types

using ReadFn

Public Member Functions

 operator bool () const noexcept

Public Attributes

void * context = nullptr
ReadFn read = nullptr

Detailed Description

A host-owned, realtime-safe view provider for declared processor input buses.

The callback must be installed before prepare() and remain immutable while the processor is running. It returns borrowed audio storage for the current block; the host owns the storage and its lifetime.

Route selection belongs to the control-thread host/catalog layer. The audio callback receives only this pre-bound POD handle, so it never enumerates tracks, allocates, locks, or resolves stable IDs.

Member Typedef Documentation

◆ ReadFn

Initial value:
bool (*)(void* context, std::size_t bus_index, std::size_t frame_count,
Non-owning view over multi-channel audio sample data.
Definition buffer.hpp:30
void * context
Definition audio_input_provider.hpp:21

Member Function Documentation

◆ operator bool()

pulp::format::AudioInputBusProvider::operator bool ( ) const
inlineexplicitnoexcept

Member Data Documentation

◆ context

void* pulp::format::AudioInputBusProvider::context = nullptr

◆ read

ReadFn pulp::format::AudioInputBusProvider::read = nullptr

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