MayaFlux 0.3.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 820 of file SoundStreamContainer.cpp.

821{
822 if (channel >= m_data.size()) {
823 error<std::out_of_range>(
826 std::source_location::current(),
827 "Channel index {} out of range (max {})",
828 channel, m_data.size() - 1);
829 }
830 return DataAccess { m_data[channel], m_structure.dimensions, m_structure.modality };
831}
@ 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: