Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::graph::ProcessBlockInfo Struct Reference

Common struct to pass around during processing to avoid repeating the data in function arguments. More...

#include <src/dsp/graph_node.h>

Public Member Functions

void print () const
constexpr units::sample_u64_t end_position () const noexcept

Static Public Member Functions

static constexpr ProcessBlockInfo from_position_and_nframes (units::sample_u64_t transport_position, units::sample_u32_t nframes)

Data Fields

units::sample_u64_t transport_position_
 Transport (timeline) position at the start of this chunk (already taking into account the offset).
units::sample_u32_t buffer_offset_
 Offset in the current processing cycle's audio buffer, between 0 and the number of frames in AudioEngine.block_length.
units::sample_u32_t nframes_
 Number of frames to process in this call, starting from the offset.

Detailed Description

Common struct to pass around during processing to avoid repeating the data in function arguments.

Definition at line 50 of file graph_node.h.

Member Function Documentation

◆ end_position()

units::sample_u64_t zrythm::dsp::graph::ProcessBlockInfo::end_position ( ) const
inlineconstexprnoexcept

Definition at line 66 of file graph_node.h.

◆ from_position_and_nframes()

constexpr ProcessBlockInfo zrythm::dsp::graph::ProcessBlockInfo::from_position_and_nframes ( units::sample_u64_t transport_position,
units::sample_u32_t nframes )
inlinestaticconstexpr

Definition at line 55 of file graph_node.h.

Field Documentation

◆ buffer_offset_

units::sample_u32_t zrythm::dsp::graph::ProcessBlockInfo::buffer_offset_

Offset in the current processing cycle's audio buffer, between 0 and the number of frames in AudioEngine.block_length.

Definition at line 78 of file graph_node.h.

◆ nframes_

units::sample_u32_t zrythm::dsp::graph::ProcessBlockInfo::nframes_

Number of frames to process in this call, starting from the offset.

Definition at line 83 of file graph_node.h.

◆ transport_position_

units::sample_u64_t zrythm::dsp::graph::ProcessBlockInfo::transport_position_

Transport (timeline) position at the start of this chunk (already taking into account the offset).

Definition at line 74 of file graph_node.h.


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