Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
Include |
#include "AudioStreamingCache.h" |
class FAudioChunkCache
Basic fixed-size LRU cache for retaining chunks of compressed audio data.
Name | Description | ||
---|---|---|---|
|
const int32 |
MaxChunkSize |
Name | Description | |
---|---|---|
|
FAudioChunkCache |
Name | Description | |
---|---|---|
|
~FAudioChunkCache() |
Name | Description | ||
---|---|---|---|
|
AddNewReferenceToChunk ( |
Add an additional reference for a chunk. |
|
|
AddOrTouchChunk ( |
Places chunk in cache, or puts this chunk back at the top of the cache if it's already loaded. Returns false on failure. |
|
|
BeginLoggingCacheMisses() |
Debug tools: Call this to start enqueing reports on any cache misses to a queue. |
|
|
BlockForAllPendingLoads() |
This function will continue to lock until any async file loads are finished. |
|
|
CancelAllPendingLoads() |
This function will cancel any in-flight loads and wait for their completion. |
|
|
ClearCache() |
Evict all sounds from the cache. |
|
|
TPair< int, ... |
DebugDisplay |
This is for debugging purposes only. |
|
DebugPrint() |
Generate a formatted text file for this cache. |
|
|
FlushCacheMissLog() |
When called, flushes the entire queue of cache misses that has accumulated And prints them to a formatted |
|
|
TArrayView< ... |
GetChunk |
Returns the chunk asked for, or an empty TArrayView if that chunk is not loaded. |
|
IsKeyValid ( |
Static helper function to make sure a chunk is withing the bounds of a USoundWave. |
|
|
RemoveReferenceToChunk ( |
||
|
ReportCacheSize() |
Reports the size of this cache's memory pool, in bytes. |
|
|
StopLoggingCacheMisses() |
This will stop enqueueing reports of cache misses. |
|
|
TrimMemory ( |
This function will reclaim memory by freeing as many chunks as needed to free BytesToFree. |
Name |
Description |
|
---|---|---|
|
FChunkKey |