Skip to main content

Module chunked_process

Module chunked_process 

Source
Expand description

Sample-accurate parameter-dependent chunking.

Splits a host audio block into sub-blocks at the sample_offset of every ParamChange (for chunkable parameters) and every Transport event, calling plugin.process() once per sub-block. set_plain for parameter events is deferred to the sub-block boundary where the event actually sits, so smoothers see set_target at the right sample instead of at sample 0 of the whole audio block.

Every format wrapper routes its process() call through process_chunked. On formats whose host events all carry sample_offset = 0 (VST2, AAX, LV2 in v1, AU until ramp decoding lands) the loop runs once per block and the splitting machinery is inert.

Structs§

ChunkedProcess
Inputs to process_chunked.

Functions§

process_chunked
Walk the audio block in sub-block chunks, calling plugin.process() once per chunk with the events that land in [block_start, block_end) rebased to sub-block-relative offsets.