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

Format-neutral transport snapshot, already decoded from a host playhead into canonical units (quarter-note beats, samples, real BPM). More...

#include <adapter_boundary.hpp>

Public Attributes

TransportValidity validity {}
bool is_playing = false
bool is_recording = false
bool is_looping = false
double tempo_bpm = 120.0
double position_beats = 0.0
 quarter notes
std::int64_t position_samples = 0
int time_sig_numerator = 4
int time_sig_denominator = 4
double loop_start_beats = 0.0
 meaningful only when is_looping
double loop_end_beats = 0.0
std::int64_t host_bar = 0
 A host that publishes a precomputed bar sets TransportField::Bar; otherwise the mapper derives it from valid beats and time signature.
std::int64_t host_time_ns = 0
FrameRate frame_rate = FrameRate::unknown

Detailed Description

Format-neutral transport snapshot, already decoded from a host playhead into canonical units (quarter-note beats, samples, real BPM).

validity says which values the host actually supplied this block; an unavailable field leaves the corresponding ProcessContext value at its compatibility default. An empty mask represents a host that supplied no transport.

Member Data Documentation

◆ frame_rate

FrameRate pulp::format::boundary::HostTransport::frame_rate = FrameRate::unknown

◆ host_bar

std::int64_t pulp::format::boundary::HostTransport::host_bar = 0

A host that publishes a precomputed bar sets TransportField::Bar; otherwise the mapper derives it from valid beats and time signature.

◆ host_time_ns

std::int64_t pulp::format::boundary::HostTransport::host_time_ns = 0

◆ is_looping

bool pulp::format::boundary::HostTransport::is_looping = false

◆ is_playing

bool pulp::format::boundary::HostTransport::is_playing = false

◆ is_recording

bool pulp::format::boundary::HostTransport::is_recording = false

◆ loop_end_beats

double pulp::format::boundary::HostTransport::loop_end_beats = 0.0

◆ loop_start_beats

double pulp::format::boundary::HostTransport::loop_start_beats = 0.0

meaningful only when is_looping

◆ position_beats

double pulp::format::boundary::HostTransport::position_beats = 0.0

quarter notes

◆ position_samples

std::int64_t pulp::format::boundary::HostTransport::position_samples = 0

◆ tempo_bpm

double pulp::format::boundary::HostTransport::tempo_bpm = 120.0

◆ time_sig_denominator

int pulp::format::boundary::HostTransport::time_sig_denominator = 4

◆ time_sig_numerator

int pulp::format::boundary::HostTransport::time_sig_numerator = 4

◆ validity

TransportValidity pulp::format::boundary::HostTransport::validity {}

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