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

◆ build()

void MayaFlux::Kriya::SamplingPipeline::build ( )

Finalize configuration and start processing.

Supplies the buffer to the output channel, chains the capture operation into the pipeline, and starts execution at buffer rate. Must be called before play(). Calling build() more than once has no effect.

Definition at line 58 of file SamplingPipeline.cpp.

59{
60 if (m_built)
61 return;
62
65
66 m_pipeline >> static_cast<BufferOperation>(m_capture);
67
68 m_pipeline->execute_buffer_rate(0);
69
70 m_built = true;
71}
bool supply_buffer_to(const std::shared_ptr< AudioBuffer > &buffer, ProcessingToken token, uint32_t channel, double mix=1.0, bool force=false)
std::shared_ptr< Buffers::AudioBuffer > m_buffer
std::shared_ptr< BufferPipeline > m_pipeline
@ AUDIO_BACKEND
Standard audio processing backend configuration.

References MayaFlux::Buffers::AUDIO_BACKEND, m_buffer, m_built, m_capture, m_channel, m_mgr, m_pipeline, and MayaFlux::Buffers::BufferManager::supply_buffer_to().

Referenced by play(), and play_continuous().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: