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

◆ record_into() [3/3]

MAYAFLUX_API std::vector< std::shared_ptr< Kriya::BufferPipeline > > MayaFlux::record_into ( const std::shared_ptr< Kakshya::DynamicSoundStream > &  stream,
std::vector< Kriya::CaptureBuilder >  sources 
)

Record several sources into consecutive channels of a stream.

Source i goes to channel i, so a stereo ring is two sources. Each source gets its own pipeline, because one pipeline spends a cycle per capture.

Parameters
streamStream to record into.
sourcesWhat to capture, one per channel starting at channel 0.
Returns
One running pipeline per source, in order. Empty if the stream is null.

Definition at line 244 of file Rigs.cpp.

247{
248 std::vector<std::shared_ptr<Kriya::BufferPipeline>> pipelines;
249
250 if (!stream) {
251 return pipelines;
252 }
253
254 pipelines.reserve(sources.size());
255 for (size_t channel = 0; channel < sources.size(); ++channel) {
256 pipelines.push_back(record_into(stream, std::move(sources[channel]), static_cast<uint32_t>(channel)));
257 }
258
259 return pipelines;
260}
Core::GlobalStreamInfo stream
Definition Config.cpp:40

References record_into(), and stream.

+ Here is the call graph for this function: