|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< std::shared_ptr< Kriya::SamplingPipeline > > MayaFlux::create_samplers | ( | const std::string & | filepath, |
| uint32_t | num_samples = 48000 *5, |
||
| bool | truncate = true, |
||
| uint64_t | max_dur_ms = 0, |
||
| uint32_t | max_channels = 0 |
||
| ) |
Construct one built SamplingPipeline per channel from an audio file.
Loads the file once into a shared DynamicSoundStream, then constructs one SamplingPipeline per channel. All pipelines share the same stream with no redundant IO. max_channels = 0 uses all channels available in the file.
| filepath | Path to the audio file (any FFmpeg-supported format). |
| num_samples | Number of samples to load (default: 48000 * 5). |
| truncate | Truncate stream to num_samples if true (default: true). |
| max_dur_ms | Optional maximum duration in milliseconds. 0 for infinite. |
| max_channels | Maximum channels to create pipelines for. 0 = all available. |
Definition at line 66 of file Rigs.cpp.
References MayaFlux::Journal::API, create_sampler_from_stream(), MayaFlux::Journal::FileIO, get_io_manager(), and MF_ERROR.
Here is the call graph for this function: