Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::audio::AsyncBlockWorker< Event >::Chunk Class Reference

One stretch of positions the job renders. More...

#include <async_block_worker.hpp>

Public Member Functions

bool emit (std::uint32_t offset, const Event &event) noexcept
 Emits an output event at offset within this chunk.

Public Attributes

std::uint64_t start = 0
 stream position of frame 0
std::uint32_t frames = 0
BufferView< const float > input
BufferView< float > output
 zeroed before the job runs
std::span< const TimedEvent > events

Friends

class AsyncBlockWorker

Detailed Description

template<typename Event = std::uint8_t>
class pulp::audio::AsyncBlockWorker< Event >::Chunk

One stretch of positions the job renders.

Input and output views point into the rings; events carry chunk offsets.

Member Function Documentation

◆ emit()

template<typename Event = std::uint8_t>
bool pulp::audio::AsyncBlockWorker< Event >::Chunk::emit ( std::uint32_t offset,
const Event & event )
inlinenoexcept

Emits an output event at offset within this chunk.

False (and counted) when the output ring is full.

◆ AsyncBlockWorker

template<typename Event = std::uint8_t>
friend class AsyncBlockWorker
friend

Member Data Documentation

◆ events

template<typename Event = std::uint8_t>
std::span<const TimedEvent> pulp::audio::AsyncBlockWorker< Event >::Chunk::events

◆ frames

template<typename Event = std::uint8_t>
std::uint32_t pulp::audio::AsyncBlockWorker< Event >::Chunk::frames = 0

◆ input

template<typename Event = std::uint8_t>
BufferView<const float> pulp::audio::AsyncBlockWorker< Event >::Chunk::input

◆ output

template<typename Event = std::uint8_t>
BufferView<float> pulp::audio::AsyncBlockWorker< Event >::Chunk::output

zeroed before the job runs

◆ start

template<typename Event = std::uint8_t>
std::uint64_t pulp::audio::AsyncBlockWorker< Event >::Chunk::start = 0

stream position of frame 0


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