![]() |
VR-Forces Developer's Guide
|
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 | |
|
privatedelete |
|
static |
Initialize the audio cache system from application startup state.
| cacheDir | Absolute path to the application cache directory (from DtDePathConfiguration::cachePath()). Pass empty to disable. |
| enabled | Snapshot of DtDeSharedState::accelerationCachingEnabled(). |
|
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.
| wavPath | Absolute resolved path to the source .wav file. |