MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ AudioContextProcessor() [1/3]

MayaFlux::Buffers::AudioContextProcessor::AudioContextProcessor ( const ContextFactory & factory,
uint32_t depth = 2,
StageFunction stage = {} )
explicit
Parameters
factoryBuilds one configured context per in-flight job. Called depth times.
depthCalls between a block's input and its output. At least 1.
stageOptional staging that replaces the default.

Definition at line 10 of file AudioContextProcessor.cpp.

11 : m_stage(std::move(stage))
12{
13 if (!factory) {
14 error<std::invalid_argument>(
16 std::source_location::current(),
17 "AudioContextProcessor: null context factory");
18 }
19
21
22 m_slots.resize(std::max<uint32_t>(depth, 1U));
23 for (auto& slot : m_slots) {
24 slot.context = factory();
25 if (!slot.context) {
26 error<std::invalid_argument>(
28 std::source_location::current(),
29 "AudioContextProcessor: factory returned a null context");
30 }
31 }
32}
@ AUDIO_PARALLEL
High-performance audio processing with GPU acceleration.
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Buffers::AUDIO_PARALLEL, MayaFlux::Journal::Buffers, depth(), MayaFlux::Journal::Init, MayaFlux::Buffers::BufferProcessor::m_processing_token, m_slots, and m_stage.

Referenced by AudioContextProcessor(), AudioContextProcessor(), operator=(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function: