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

◆ record_into()

MAYAFLUX_API std::shared_ptr< BufferPipeline > MayaFlux::Kriya::record_into ( const std::shared_ptr< Vruta::TaskScheduler > & scheduler,
const std::shared_ptr< Buffers::BufferManager > & buffer_manager,
const std::shared_ptr< Kakshya::DynamicSoundStream > & stream,
const std::shared_ptr< Buffers::AudioBuffer > & listener,
uint32_t input_channel,
uint64_t cycles,
std::optional< uint32_t > monitor = std::nullopt,
uint32_t stream_channel = 0 )

Record a live input channel into a stream through a listener buffer you supply.

Like record, but for a listener that already exists, for example the one record returned: it registers listener on input_channel again, mixes it to monitor if given, and starts a new pipeline that ends after cycles blocks and releases the listener the same way.

Parameters
listenerThe buffer that receives the input.
Returns
The running pipeline, or null when the listener, scheduler, manager or stream is null.

Definition at line 342 of file BufferPipeline.cpp.

351{
352 if (!listener || !recording_arguments_valid(scheduler, buffer_manager, stream)) {
353 return nullptr;
354 }
355
356 buffer_manager->register_input_listener(listener, input_channel);
357 if (monitor) {
358 buffer_manager->add_buffer(listener, Buffers::ProcessingToken::AUDIO_BACKEND, *monitor);
359 }
360
361 return run_recording(scheduler, buffer_manager, stream, listener, input_channel, cycles, monitor, stream_channel);
362}
@ AUDIO_BACKEND
Standard audio processing backend configuration.

References MayaFlux::Buffers::AUDIO_BACKEND.

Referenced by MayaFlux::record_into().

Here is the caller graph for this function: