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

◆ write() [2/4]

void MayaFlux::IO::SoundFileWriter::write ( const std::shared_ptr< Kakshya::SoundStreamContainer > &  container)

Post a SoundStreamContainer's planar channel data to the work queue.

Reads get_data() on the caller thread, copies, and posts as PlanarChunk.

Definition at line 135 of file SoundFileWriter.cpp.

136{
137 if (!m_open.load(std::memory_order_acquire) || !container)
138 return;
139
140 const auto& data = container->get_data();
141 if (data.empty())
142 return;
143
144 write(data);
145}
void write(std::span< const double > interleaved, uint32_t num_frames=0)
Post interleaved double-precision frames to the work queue.

References m_open, and write().

+ Here is the call graph for this function: