|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::Kakshya::iterate_region_channels | ( | const std::vector< Region > & | regions, |
| const std::shared_ptr< SignalSourceContainer > & | source, | ||
| uint32_t | num_channels, | ||
| const RegionTaper & | taper, | ||
| const RegionWriteFn & | write_fn | ||
| ) |
Iterate over a set of regions, extracting per-channel samples and dispatching them to a write callback.
For each region in regions and each channel in [0, num_channels), extracts double samples via get_region_data, optionally applies taper in-place, then calls write_fn with the region index, channel index, and sample span. Regions or channels that yield empty data are silently skipped.
| regions | Ordered set of regions to iterate. |
| source | Container supplying the sample data. |
| num_channels | Number of channels to extract per region. |
| taper | Optional in-place taper. Pass {} to skip. |
| write_fn | Callback receiving (region_idx, channel, samples). |
Definition at line 438 of file RegionUtils.cpp.
References storage.