DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::GeneratorProcessor Concept Reference

A real-time safe source processor (oscillators, noise, LFOs). More...

#include <ProcessorTraits.h>

Concept definition

template<typename P, typename T>
concept dspark::GeneratorProcessor = requires(P p, const AudioSpec& spec, AudioBufferView<T> buf) {
{ p.prepare(spec) };
{ p.reset() } noexcept;
{ p.generateBlock(buf) } noexcept;
{ p.getSample() } noexcept -> std::same_as<T>;
}
A real-time safe source processor (oscillators, noise, LFOs).

Detailed Description

A real-time safe source processor (oscillators, noise, LFOs).

Generators produce output to a buffer without requiring input. Must support both scalar getSample() and SIMD-friendly generateBlock().

Template Parameters
PProcessor type.
TSample type.

Definition at line 89 of file ProcessorTraits.h.