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

◆ process_token_with_channel_data()

std::unordered_map< unsigned int, std::vector< double > > MayaFlux::Nodes::NodeGraphManager::process_token_with_channel_data ( ProcessingToken  token,
unsigned int  num_samples 
)

Process all channels for a token and return channel-separated data.

Parameters
tokenProcessing domain
num_samplesNumber of samples/frames to process
Returns
Map of channel index to processed data

Processes all channels for a token and returns a map where each channel index maps to its processed data. This enables bulk processing while maintaining per-channel data separation.

Definition at line 279 of file NodeGraphManager.cpp.

281{
282 std::unordered_map<unsigned int, std::vector<double>> channel_data;
283
284 auto channels = get_all_channels(token);
285
286 for (unsigned int channel : channels) {
287 channel_data[channel] = process_channel(token, channel, num_samples);
288 }
289
290 return channel_data;
291}
uint32_t channel
std::vector< double > process_channel(ProcessingToken token, unsigned int channel, unsigned int num_samples)
Process a specific channel within a token domain.
std::vector< unsigned int > get_all_channels(ProcessingToken token) const
Gets all channel indices for a given processing token.

References channel, get_all_channels(), and process_channel().

+ Here is the call graph for this function: