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

◆ create_audio_container_buffers()

std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > MayaFlux::IO::Detail::create_audio_container_buffers ( const std::shared_ptr< Buffers::BufferManager > &  buffer_manager,
const std::shared_ptr< Kakshya::SoundFileContainer > &  container 
)

Definition at line 108 of file IOTransitions.cpp.

111{
112 std::vector<std::shared_ptr<Buffers::SoundContainerBuffer>> created_buffers;
113
114 const uint32_t num_channels = container->get_num_channels();
115 created_buffers.reserve(num_channels);
116
117 for (uint32_t channel = 0; channel < num_channels; ++channel) {
118 auto container_buffer = buffer_manager->create_audio_buffer<Buffers::SoundContainerBuffer>(
119 Buffers::ProcessingToken::AUDIO_BACKEND,
120 channel,
121 container,
122 channel);
123
124 container_buffer->initialize();
125 created_buffers.push_back(std::move(container_buffer));
126 }
127
128 return created_buffers;
129}
void initialize()
Initialize the buffer after construction.
AudioBuffer implementation backed by a StreamContainer.

References MayaFlux::Buffers::AUDIO_BACKEND, and MayaFlux::Buffers::SoundContainerBuffer::initialize().

Referenced by MayaFlux::IO::IOManager::hook_audio_container_to_buffers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: