API reference
API reference
Select your platform
No SDKs available
No versions available

TTSRuntimeLRUCache Class

An LRU cache that unloads based on least recently used access

Fields

Whether or not to unload clip data after the clip capacity is hit
The maximum clips allowed in the runtime cache
Whether or not to unload clip data after the ram capacity is hit
The maximum amount of RAM allowed in the runtime cache. In KBs

Member Functions

Simple getter for all clips
Refresh clip id's least recently used order
Getter for a clip that also moves clip to the back of the queue
Add clip to cache and ensure it is most recently referenced
Get RAM size of cache in KBs
Returns
Returns size in KBs rounded up

Protected Functions

virtual override void OnDestroy ( )
Add clip id to lru order
Remove clip id from lru order if possible

Static Member Functions

static long GetClipBytes
( AudioClip clip )
static long GetClipBytes
( int channels,
int samples )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon