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

Additive block-scoped process contract. More...

#include <process_block.hpp>

Public Member Functions

bool is_realtime () const noexcept
bool is_offline () const noexcept
bool has_transport () const noexcept
bool has_scratch () const noexcept
bool validate () const noexcept

Public Attributes

ProcessMode mode = ProcessMode::Realtime
ProcessBlockFlags flags
double sample_rate = 0.0
std::uint32_t frame_count = 0
double render_speed = 1.0
std::uint64_t block_index = 0
const ProcessContext * transport = nullptr
BusBufferSet * buses = nullptr
EventBlock * events = nullptr
BlockScratch * scratch = nullptr

Detailed Description

Additive block-scoped process contract.

This does not replace Processor::process(). It packages the existing transport context with explicit bus, event, scratch, mode, and render-speed state so new runtime paths can share one contract.

Member Function Documentation

◆ has_scratch()

bool pulp::format::ProcessBlock::has_scratch ( ) const
inlinenoexcept

◆ has_transport()

bool pulp::format::ProcessBlock::has_transport ( ) const
inlinenoexcept

◆ is_offline()

bool pulp::format::ProcessBlock::is_offline ( ) const
inlinenoexcept

◆ is_realtime()

bool pulp::format::ProcessBlock::is_realtime ( ) const
inlinenoexcept

◆ validate()

bool pulp::format::ProcessBlock::validate ( ) const
inlinenoexcept

Member Data Documentation

◆ block_index

std::uint64_t pulp::format::ProcessBlock::block_index = 0

◆ buses

BusBufferSet* pulp::format::ProcessBlock::buses = nullptr

◆ events

EventBlock* pulp::format::ProcessBlock::events = nullptr

◆ flags

ProcessBlockFlags pulp::format::ProcessBlock::flags

◆ frame_count

std::uint32_t pulp::format::ProcessBlock::frame_count = 0

◆ mode

ProcessMode pulp::format::ProcessBlock::mode = ProcessMode::Realtime

◆ render_speed

double pulp::format::ProcessBlock::render_speed = 1.0

◆ sample_rate

double pulp::format::ProcessBlock::sample_rate = 0.0

◆ scratch

BlockScratch* pulp::format::ProcessBlock::scratch = nullptr

◆ transport

const ProcessContext* pulp::format::ProcessBlock::transport = nullptr

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