MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Depot.hpp File Reference

Audio file loading and container management API. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Buffers
 
namespace  MayaFlux::IO
 
namespace  MayaFlux::Kakshya
 

Functions

template<typename ContainerType , typename... Args>
requires std::derived_from<ContainerType, Kakshya::SignalSourceContainer>
auto MayaFlux::create_container (Args &&... args) -> std::shared_ptr< ContainerType >
 creates a new container of the specified type
 
std::shared_ptr< IO::IOManagerMayaFlux::get_io_manager ()
 Retrieves the global IOManager instance for file loading and buffer management.
 
MAYAFLUX_API bool MayaFlux::is_audio (const std::filesystem::path &filepath)
 Checks if the given file is an audio file based on its extension.
 
MAYAFLUX_API bool MayaFlux::is_image (const std::filesystem::path &filepath)
 Checks if the given file is an image file based on its extension.
 
std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > MayaFlux::prepare_audio_buffers (const std::shared_ptr< Kakshya::SoundFileContainer > &container)
 Constructs and initializes per-channel SoundContainerBuffers without registering them.
 

Detailed Description

Audio file loading and container management API.

This header provides the public API for working with IOManager, container creation, and file type checking within the MayaFlux engine. It includes:

  • create_container<ContainerType>(args...): Template function to create signal source containers.
  • is_audio(filepath): Check if a file is an audio file based on its extension.
  • is_image(filepath): Check if a file is an image file based on its extension.
  • get_io_manager(): Access the global IOManager instance for file loading and buffer management.

Definition in file Depot.hpp.