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

◆ set_data() [4/4]

void MayaFlux::Buffers::AudioWriteProcessor::set_data ( std::vector< double >  data)

Supply the next frame of double-precision samples.

Parameters
dataSamples to write into the buffer on the next cycle. If size differs from the attached buffer's frame count, the write is truncated or zero-padded to fit.

Definition at line 14 of file AudioWriteProcessor.cpp.

15{
16 m_pending = std::move(data);
17 m_dirty.test_and_set(std::memory_order_release);
18}

References m_dirty, and m_pending.