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

◆ extract_channel_data()

void MayaFlux::Buffers::SoundStreamReader::extract_channel_data ( std::span< double >  output)
private

Extract channel data from the container into the output buffer.

Parameters
outputOutput span to fill.

Definition at line 89 of file SoundContainerBuffer.cpp.

90{
91 auto sc = std::dynamic_pointer_cast<Kakshya::SoundStreamContainer>(m_container);
92 if (!sc) {
93 std::ranges::fill(output, 0.0);
94 return;
95 }
96
97 const auto& pd = sc->get_processed_data();
98 const auto structure = sc->get_structure();
99
101 pd, structure.organization, structure.get_channel_count(),
102 m_source_channel, output);
103}
std::shared_ptr< Kakshya::StreamContainer > m_container
void extract_processed_data(const std::vector< DataVariant > &pd, OrganizationStrategy organization, uint64_t num_channels, uint32_t ch, std::span< double > output)
Extract one channel's samples from a processed dynamic data block.

References MayaFlux::Kakshya::extract_processed_data(), m_container, and m_source_channel.

Referenced by on_attach(), and processing_function().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: