MayaFlux 0.2.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 822 of file SoundStreamContainer.cpp.

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