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

◆ get_output_snapshot

std::function<std::span<const double>()> MayaFlux::Registry::Service::AudioBackendService::get_output_snapshot

Returns a span over the last committed interleaved output buffer.

Lock-free. Safe from any non-RT thread. The underlying pointer is engine-owned and valid between the last output cycle and the next. Copy the data if it is needed beyond the current cycle.

Returns an empty span if no output cycle has completed yet.

Definition at line 52 of file AudioBackendService.hpp.

Referenced by MayaFlux::Kakshya::AudioOutputAccessProcessor::process().