Navigation
Unreal Engine C++ API Reference > Runtime > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/AudioStreamingCache.h |
Include | #include "AudioStreamingCache.h" |
Syntax
class FAudioChunkCache
Remarks
Basic fixed-size LRU cache for retaining chunks of compressed audio data.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
const int32 | MaxChunkSize |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FAudioChunkCache
(
uint32 InMaxChunkSize, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddNewReferenceToChunk
(
const FChunkKey& InKey |
Add an additional reference for a chunk. |
![]() |
uint64 | AddOrTouchChunk
(
const FChunkKey& InKey, |
Places chunk in cache, or puts this chunk back at the top of the cache if it's already loaded. |
![]() |
void | Debug tools: Call this to start enqueing reports on any cache misses to a queue. | |
![]() ![]() |
void | This function will continue to lock until any async file loads are finished. | |
![]() |
void | This function will cancel any in-flight loads and wait for their completion. | |
![]() |
void | ClearCache () |
Evict all sounds from the cache. |
![]() ![]() |
TPair< int, int > | DebugBirdsEyeDisplay
(
UWorld* World, |
|
![]() ![]() |
TPair< int, int > | DebugDisplay
(
UWorld* World, |
|
![]() ![]() |
TPair< int, int > | DebugDisplayLegacy
(
UWorld* World, |
This is for debugging purposes only. |
![]() |
FString | DebugPrint () |
Generate a formatted text file for this cache. |
![]() ![]() |
TPair< int, int > | DebugVisualDisplay
(
UWorld* World, |
|
![]() ![]() |
bool | DoesKeyContainValidChunkIndex
(
const FChunkKey& InKey, |
Static helper function to make sure a chunk is withing the bounds of a USoundWave. |
![]() |
FString | When called, flushes the entire queue of cache misses that has accumulated And prints them to a formatted | |
![]() ![]() |
uint64 | GetCacheLookupIDForChunk
(
const FChunkKey& InChunkKey |
Interface with the cache id lookup map |
![]() |
TArrayView< uint8 > | GetChunk
(
const FChunkKey& InKey, |
Returns the chunk asked for, or an empty TArrayView if that chunk is not loaded. |
![]() |
TArray< FObjectKey > | GetLeastRecentlyUsedRetainedSoundWaves
(
int32 NumSoundWavesToRetrieve |
Returns an array of the USoundwaves retaining the least recently used retained chunks in the cache. |
![]() ![]() |
int32 | ||
![]() |
void | ||
![]() |
void | RemoveReferenceToChunk
(
const FChunkKey& InKey |
|
![]() |
uint64 | Reports the size of this cache's memory pool, in bytes. | |
![]() |
void | SetCacheLookupIDForChunk
(
const FChunkKey& InChunkKey, |
|
![]() |
void | This will stop enqueueing reports of cache misses. | |
![]() |
uint64 | TrimMemory
(
uint64 BytesToFree, |
This function will reclaim memory by freeing as many chunks as needed to free BytesToFree. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FCacheMissEntry | ||
![]() |
FChunkKey |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EDebugDisplayElementTypes | This is for debugging purposes only. |