|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::shared_ptr< Kriya::SamplingPipeline > MayaFlux::create_sampler_from_stream | ( | std::shared_ptr< Kakshya::DynamicSoundStream > | stream, |
| uint32_t | channel = 0, |
||
| uint64_t | max_dur_ms = 0 |
||
| ) |
Construct a built SamplingPipeline from an existing DynamicSoundStream.
Allows multiple SamplingPipeline instances to share a single loaded stream, one per output channel, without re-reading the file. The stream is typically obtained from a previously created sampler via get_stream(), or loaded directly via get_io_manager()->load_audio_bounded().
| stream | Loaded DynamicSoundStream to share. |
| channel | Output channel index (default: 0). |
| max_dur_ms | Optional maximum duration in milliseconds. 0 for infinite. |
Definition at line 43 of file Rigs.cpp.
References channel, get_buffer_manager(), MayaFlux::Config::get_buffer_size(), and get_scheduler().
Referenced by create_samplers().
Here is the call graph for this function:
Here is the caller graph for this function: