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

◆ get_associated_buffers() [2/2]

MAYAFLUX_API std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > MayaFlux::get_associated_buffers ( const std::shared_ptr< Kakshya::VideoFileContainer > &  container)

The audio buffers of a video file's extracted sound track.

Empty when the video was loaded without VideoReadOptions::EXTRACT_AUDIO, has no audio track, or has not been hooked.

Definition at line 177 of file Depot.cpp.

179{
180 const auto io = get_io_manager();
181 if (!io || !container) {
182 return {};
183 }
184
185 const auto audio = io->get_extracted_audio(container);
186 return audio ? io->get_audio_buffers(audio) : std::vector<std::shared_ptr<Buffers::SoundContainerBuffer>> {};
187}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:575

References get_io_manager().

+ Here is the call graph for this function: