MayaFlux 0.5.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 781 of file SoundStreamContainer.cpp.

782{
783 if (channel >= m_data.size()) {
784 error<std::out_of_range>(
787 std::source_location::current(),
788 "Channel index {} out of range (max {})",
789 channel, m_data.size() - 1);
790 }
791 return DataAccess { m_data[channel], m_structure.dimensions, m_structure.modality };
792}
@ 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: