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

◆ use_viscothermal_losses()

bool MayaFlux::Nodes::Network::DuctNetwork::use_viscothermal_losses ( )
nodiscard

Take the wall losses from the duct's mean radius, fitted to the viscothermal attenuation of a tube at 150 Hz and 3 kHz.

Definition at line 314 of file DuctNetwork.cpp.

315{
316 std::scoped_lock lock(m_producer_mutex);
317 const Losses losses { .automatic = true };
318 auto next = build(m_length, m_profile, losses, m_mouth_volume, m_mouth, m_bell);
319 if (!next) {
320 return false;
321 }
322
323 next->keep_state = true;
324
325 m_losses = losses;
326 publish(std::move(next));
327 return true;
328}
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: