galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::resource::VoiceLoader Struct Referencefinal

Loads resources for the voice cache. More...

#include <Media.hpp>

+ Inheritance diagram for galaxy::resource::VoiceLoader:
+ Collaboration diagram for galaxy::resource::VoiceLoader:

Public Member Functions

std::unique_ptr< media::Sound > operator() (const std::string &file)
 Overloaded operator() used to load a resource.
 
- Public Member Functions inherited from galaxy::resource::Loader< media::Sound >
std::unique_ptr< media::Sound > operator() (const std::string &file)
 Overloaded operator() used to load a resource.
 

Detailed Description

Loads resources for the voice cache.

Template Parameters
ResourceA resource is a class containing data.

Definition at line 64 of file Media.hpp.

Member Function Documentation

◆ operator()()

std::unique_ptr< media::Sound > galaxy::resource::VoiceLoader::operator() ( const std::string & file)

Overloaded operator() used to load a resource.

Parameters
filePath on disk/archive to load file from.
Returns
Handle to created resource.

Definition at line 38 of file Media.cpp.


The documentation for this struct was generated from the following files: