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

◆ channel_data()

DataAccess MayaFlux::Kakshya::SoundStreamContainer::channel_data ( size_t  channel)
overridevirtual

Get channel data with semantic interpretation.

Parameters
channelChannel index
Returns
Type-erased data accessor

Implements MayaFlux::Kakshya::SignalSourceContainer.

Definition at line 818 of file SoundStreamContainer.cpp.

819{
820 if (channel >= m_data.size()) {
821 error<std::out_of_range>(
824 std::source_location::current(),
825 "Channel index {} out of range (max {})",
826 channel, m_data.size() - 1);
827 }
828 return DataAccess { m_data[channel], m_structure.dimensions, m_structure.modality };
829}
@ Runtime
General runtime operations (default fallback)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.

References MayaFlux::Kakshya::ContainerDataStructure::dimensions, MayaFlux::Journal::Kakshya, m_data, m_structure, MayaFlux::Kakshya::ContainerDataStructure::modality, and MayaFlux::Journal::Runtime.

Referenced by MayaFlux::Kakshya::DynamicSoundStream::get_channel_frames(), and MayaFlux::Kakshya::DynamicSoundStream::get_channel_frames().

+ Here is the caller graph for this function: