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

◆ write() [1/4]

void MayaFlux::IO::SoundFileWriter::write ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer)

Post one AudioBuffer's mono sample data to the work queue.

Definition at line 123 of file SoundFileWriter.cpp.

124{
125 if (!m_open.load(std::memory_order_acquire) || !buffer)
126 return;
127
128 const auto& data = buffer->get_data();
129 if (data.empty())
130 return;
131
132 post(FrameChunk { .samples = data, .num_frames = static_cast<uint32_t>(data.size()) });
133}
bool post(const WorkItem &item)

References m_open, post(), and MayaFlux::IO::SoundFileWriter::FrameChunk::samples.

+ Here is the call graph for this function: