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

◆ pressure_field()

std::vector< double > MayaFlux::Nodes::Network::DuctNetwork::pressure_field ( ) const
nodiscard

Copy of the pressures along the duct from the last block.

Definition at line 560 of file DuctNetwork.cpp.

561{
562 while (m_audio_buffer_lock.test_and_set(std::memory_order_acquire)) {
563 std::this_thread::yield();
564 }
565 std::vector<double> copy = m_field;
566 m_audio_buffer_lock.clear(std::memory_order_release);
567 return copy;
568}
std::atomic_flag m_audio_buffer_lock
Spinlock guarding m_last_audio_buffer.
CopiedText copy(std::string_view text, const LayoutResult &layout, size_t a, size_t b)
Copy a byte range: the text it spans, and the quads that render it.

References MayaFlux::Nodes::Network::NodeNetwork::m_audio_buffer_lock, and m_field.