MayaFlux 0.1.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 throw std::out_of_range("Channel index out of range");
826 }
827 return DataAccess { m_data[channel], m_structure.dimensions, m_structure.modality };
828}

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

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

+ Here is the caller graph for this function: