MayaFlux 0.3.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 277 of file NodeGraphManager.cpp.

279{
280 std::unordered_map<unsigned int, std::vector<double>> channel_data;
281
282 auto channels = get_all_channels(token);
283
284 for (unsigned int channel : channels) {
285 channel_data[channel] = process_channel(token, channel, num_samples);
286 }
287
288 return channel_data;
289}
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 get_all_channels(), and process_channel().

+ Here is the call graph for this function: