std::function< void(Yantra::WordPairExecutionContext &, std::span< const double >, uint64_t)> StageFunction
Fills a context for one job from the child's samples and the call's sequence number.
AudioContextProcessor & operator=(const AudioContextProcessor &)=delete
uint64_t missed() const
Calls whose output was silent although a result was due.
void processing_function(const std::shared_ptr< Buffer > &buffer) override
The core processing function that must be implemented by derived classes.
void on_detach(const std::shared_ptr< Buffer > &buffer) override
Called when this processor is detached from a buffer.
std::function< std::shared_ptr< Yantra::WordPairExecutionContext >()> ContextFactory
bool is_compatible_with(const std::shared_ptr< Buffer > &buffer) const override
Checks if this processor can handle the specified buffer type.
AudioContextProcessor & operator=(AudioContextProcessor &&)=delete
void on_attach(const std::shared_ptr< Buffer > &buffer) override
Called when this processor is attached to a buffer.
std::vector< Slot > m_slots
AudioContextProcessor(const AudioContextProcessor &)=delete
AudioContextProcessor(AudioContextProcessor &&)=delete
AudioContextProcessor(const ContextFactory &factory, uint32_t depth=2, StageFunction stage={})
Runs a Yantra word pair context over a child AudioBuffer without blocking.
Shader context whose numeric input is staged as a uvec2 per double.
Portal::Graphics::FenceID fence
std::shared_ptr< Yantra::WordPairExecutionContext > context