MayaFlux 0.3.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::IO
 
namespace  MayaFlux::Kakshya
 
namespace  MayaFlux::Buffers
 

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
 
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::shared_ptr< IO::IOManagerMayaFlux::get_io_manager ()
 Retrieves the global IOManager instance for file loading and buffer management.
 

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.