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

◆ set_length()

bool MayaFlux::Nodes::Network::DuctNetwork::set_length ( double length)
nodiscard

Change the length in metres, keeping the profile.

Definition at line 231 of file DuctNetwork.cpp.

232{
233 std::scoped_lock lock(m_producer_mutex);
234 auto next = build(length, m_profile, m_losses, m_mouth_volume, m_mouth, m_bell);
235 if (!next) {
236 return false;
237 }
238
239 next->keep_state = true;
240
241 m_length = length;
242 publish(std::move(next));
243 return true;
244}
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

References build(), m_bell, m_length, m_losses, m_mouth, m_mouth_volume, m_producer_mutex, m_profile, and publish().

Here is the call graph for this function: