MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
BufferUtils.cpp File Reference
+ Include dependency graph for BufferUtils.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Buffers
 

Functions

bool MayaFlux::Buffers::are_tokens_compatible (ProcessingToken preferred, ProcessingToken current)
 Determines if two processing tokens are compatible for joint execution.
 
void MayaFlux::Buffers::validate_token (ProcessingToken token)
 Validates that a processing token has a valid, non-conflicting configuration.
 
ProcessingToken MayaFlux::Buffers::get_optimal_token (const std::string &buffer_type, uint32_t system_capabilities)
 Gets the optimal processing token for a given buffer type and system configuration.
 
bool MayaFlux::Buffers::wait_for_snapshot_completion (const std::shared_ptr< Nodes::Node > &node, uint64_t active_context_id, int max_spins=MAX_SPINS)
 Wait for an active snapshot context to complete using exponential backoff.
 
double MayaFlux::Buffers::extract_single_sample (const std::shared_ptr< Nodes::Node > &node)
 Extract a single sample from a node with proper snapshot management.
 
std::vector< double > MayaFlux::Buffers::extract_multiple_samples (const std::shared_ptr< Nodes::Node > &node, size_t num_samples)
 Extract multiple samples from a node into a vector.
 
void MayaFlux::Buffers::update_buffer_with_node_data (const std::shared_ptr< Nodes::Node > &node, std::span< double > buffer, double mix=1.0)
 Apply node output to an existing buffer with mixing.