VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions | Private Member Functions
makVrv::DtMeafCacheManager Class Reference

Runtime WAV-to-MEAF auto-conversion cache manager.

Initialized once at application startup via init(). When accelerated file loading is enabled, autoConvertPath() checks appData/cache/ for a fresh .meaf and converts on-demand if stale or missing. The converted file is reused on all subsequent loads.

Static Public Member Functions

static void init (const std::string &cacheDir, bool enabled)
 
static std::string autoConvertPath (const std::string &wavPath)
 

Private Member Functions

 DtMeafCacheManager ()=delete
 

Constructor & Destructor Documentation

makVrv::DtMeafCacheManager::DtMeafCacheManager ( )
privatedelete

Member Function Documentation

static void makVrv::DtMeafCacheManager::init ( const std::string &  cacheDir,
bool  enabled 
)
static

Initialize the audio cache system from application startup state.

Parameters
cacheDirAbsolute path to the application cache directory (from DtDePathConfiguration::cachePath()). Pass empty to disable.
enabledSnapshot of DtDeSharedState::accelerationCachingEnabled().
static std::string makVrv::DtMeafCacheManager::autoConvertPath ( const std::string &  wavPath)
static

Probe or build a .meaf cache entry for wavPath on demand.

Checks appData/cache/ for a fresh .meaf corresponding to wavPath. If no up-to-date cache entry exists, attempts to convert on demand and returns the resulting cache path.

Parameters
wavPathAbsolute resolved path to the source .wav file.
Returns
The .meaf cache path on success, or an empty string if caching is disabled, the source WAV is unreadable, or conversion fails.

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)