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

◆ set_bell()

bool MayaFlux::Nodes::Network::DuctNetwork::set_bell ( std::shared_ptr< TerminationOperator > termination)
nodiscard

Replace the termination at the bell.

Definition at line 347 of file DuctNetwork.cpp.

348{
349 std::scoped_lock lock(m_producer_mutex);
350 auto next = build(m_length, m_profile, m_losses, m_mouth_volume, m_mouth, termination);
351 if (!next) {
352 return false;
353 }
354
355 next->keep_state = true;
356
357 m_operator_chain->remove(m_bell);
358 m_bell = std::move(termination);
360 publish(std::move(next));
361 return true;
362}
std::shared_ptr< Prepared > build(double length, const Profile &profile, const Losses &losses, double mouth_volume, const std::shared_ptr< TerminationOperator > &mouth, const std::shared_ptr< TerminationOperator > &bell) const
std::shared_ptr< TerminationOperator > m_mouth
void publish(std::shared_ptr< Prepared > next)
std::shared_ptr< TerminationOperator > m_bell
std::shared_ptr< OperatorChain > m_operator_chain

References build(), m_bell, m_length, m_losses, m_mouth, m_mouth_volume, MayaFlux::Nodes::Network::NodeNetwork::m_operator_chain, m_producer_mutex, m_profile, and publish().

Here is the call graph for this function: