Construct an AudioBufferCache providing a maximum disk size beyond which entries are expired.
Optional
cacheSize: number = ...The maximum cache size in bytes. 1GB by default.
A string representation of the current cache utilization.
Delete an entry from the cache.
The audio buffer source path
Was the buffer deleted from the cache?
Retrieve an AudioBuffer from the cache.
The audio buffer source path
The cached audio buffer, or undefined
Lock a buffer, preventing it from being expired even if it is least-recently-used.
The audio buffer source path
Optional
locked: boolean = trueLock the buffer, preventing its expiration?
Insert an AudioBuffer into the buffers cache.
The audio buffer source path
The audio buffer to insert
A specialized cache used for audio buffers. This is an LRU cache which expires buffers from the cache once the maximum cache size is exceeded.