This is an interface to the sound shader manager. More...
#include "SoundShaderManager.hpp"
Public Member Functions | |
virtual ArrayT< const SoundShaderT * > | RegisterSoundShaderScript (const std::string &ScriptFile, const std::string &ModDir)=0 |
Register a sound shader script file by parsing all sound shaders from the list and adding them to the manager. More... | |
virtual ArrayT< const SoundShaderT * > | RegisterSoundShaderScriptsInDir (const std::string &Directory, const std::string &ModDir, bool Recurse=true)=0 |
Registers all ".caud" files inside a directory. More... | |
virtual const SoundShaderT * | GetSoundShader (const std::string &Name)=0 |
Searches for the shader specified by Name and returns it. More... | |
virtual | ~SoundShaderManagerI () |
Virtual destructor, so that nothing can go wrong and even g++ is happy. More... | |
This is an interface to the sound shader manager.
The interface is specified as ABC in order to be able to share the sound shader manager across exe/dll boundaries. (Note that sharing across exe/dll boundaries is probably not needed: The SoundShaderManagerI is just a helper for getting SoundShaderTs from script files. Thus we could also share (pointers to) arrays of SoundShaderTs directly. (MODs should not register their own sound shaders, as the engine registeres anything in the SoundShader dir. anyway.) It is just the GetSoundShader() "search" function that makes sharing the SoundShaderManagerI interesting.)
|
inlinevirtual |
Virtual destructor, so that nothing can go wrong and even g++ is happy.
|
pure virtual |
Searches for the shader specified by Name and returns it.
Name | The name of this sound shader as it is defined in the sound shader script. If no sound shader by this name is found the manager tries to interpret the Name as a filename to an audio file and automatically creates a default shader for it. |
Implemented in SoundShaderManagerImplT.
|
pure virtual |
Register a sound shader script file by parsing all sound shaders from the list and adding them to the manager.
ScriptFile | Path to the file that contains the sound shader definitions. |
ModDir | The directory of the MOD the sound shader script is registered for relative to the executables directory. |
Implemented in SoundShaderManagerImplT.
|
pure virtual |
Registers all ".caud" files inside a directory.
Directory | The path from which sound shader script files should be registered. |
ModDir | The directory of the MOD for which the sound shader script in this directory are registered relative to the executables directory. |
Recurse | Determines if subdirectories are searched for ".caud" files recusively. |
Implemented in SoundShaderManagerImplT.