![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AudioStreamingCache.h>
Inheritance diagram for FCachedAudioStreamingManager:Static Public Member Functions | |
| static int32 | GetNextChunkIndex (const FSoundWaveProxyPtr &InSoundWave, const uint32 InCurrentChunkIndex) |
Static Public Member Functions inherited from IStreamingManager | |
| static ENGINE_API struct FStreamingManagerCollection & | Get () |
| static ENGINE_API struct FStreamingManagerCollection * | Get_Concurrent () |
| static ENGINE_API void | Shutdown () |
| static ENGINE_API bool | HasShutdown () |
Protected Member Functions | |
| virtual void | AddReferenceToChunk (const FAudioChunkHandle &InHandle) override |
| virtual void | RemoveReferenceToChunk (const FAudioChunkHandle &InHandle) override |
| virtual void | AddMemoryCountedFeature (const FAudioStreamCacheMemoryHandle &Feature) override |
| virtual void | RemoveMemoryCountedFeature (const FAudioStreamCacheMemoryHandle &Feature) override |
| virtual void | HandleStarvation (const FSoundWaveProxyPtr &SoundWave, const uint32 ChunkIndex, const uint32 InBytesProduced, const uint32 InBytesExpected) override |
| FAudioChunkCache * | GetCacheForWave (const FSoundWaveProxyPtr &InSoundWave) const |
| FAudioChunkCache * | GetCacheForChunkSize (uint32 InChunkSize) const |
Protected Member Functions inherited from IStreamingManager | |
| void | SetupViewInfos (float DeltaTime) |
Protected Attributes | |
| TArray< FAudioChunkCache > | CacheArray |
Protected Attributes inherited from IAudioStreamingManager | |
| friend | FAudioChunkHandle |
| friend | FAudioStreamCacheMemoryHandle |
Protected Attributes inherited from IStreamingManager | |
| int32 | NumWantingResources |
| int32 | NumWantingResourcesCounter |
This implementation of the audio streaming manager uses an internal LRU cache (or in more advanced applications, a bank of parallel LRU caches)
| FCachedAudioStreamingManager::FCachedAudioStreamingManager | ( | const FCachedAudioStreamingManagerParams & | InitParams | ) |
Constructor, initializing all members
|
virtual |
|
overridevirtual |
Adds the memory usage of the force inline sound to the streaming cache budget
Reimplemented from IAudioStreamingManager.
Adds a ULevel that has already prepared StreamingData to the streaming manager.
Implements IStreamingManager.
|
overrideprotectedvirtual |
This can be used to increase the memory count for external features. Called by FAudioStreamCacheMemoryHandle. The pattern for changing the amount of memory of an already added feature is to first remove and then add again with the new number
Reimplemented from IAudioStreamingManager.
|
overrideprotectedvirtual |
This can be used to increment reference counted handles to audio chunks. Called by the copy constructor of FAudioChunkHandle.
Implements IAudioStreamingManager.
|
overridevirtual |
Blocks till all pending requests are fulfilled.
| TimeLimit | Optional time limit for processing, in seconds. Specifying 0 means infinite time limit. |
| bLogResults | Whether to dump the results to the log. |
Implements IStreamingManager.
|
overridevirtual |
Cancels the timed Forced resources (i.e used the Kismet action "Stream In Textures").
Implements IStreamingManager.
|
overridevirtual |
Generate a memory report as a formatted string for this streaming manager.
Implements IAudioStreamingManager.
|
protected |
|
protected |
Returns which cache this sound wave should be in, based on the size of this sound wave's chunk, or nullptr if MemoryLoadOnDemand is disabled.
|
overridevirtual |
Gets a pointer to a chunk of audio data
| SoundWave | SoundWave we want a chunk from |
| ChunkIndex | Index of the chunk we want |
| bBlockForLoad | if true, will block this thread until we finish loading this chunk. |
| bForImmediatePlayback | if true, will optionally reprioritize this chunk's load request. See au.streamcaching.PlaybackRequestPriority. |
Implements IAudioStreamingManager.
|
static |
Returns the next chunk to kick off a load for, or INDEX_NONE if there is only one chunk to cache.
| InSoundWave | Wave Proxy |
| InCurrentChunkIndex | Current index to move forwards of |
|
overrideprotectedvirtual |
In the event that the decoder playing back the chunks is in a starvation state due to an outstanding chunk load, handle that here.
Reimplemented from IAudioStreamingManager.
|
overridevirtual |
Notifies manager of "level" change.
Implements IStreamingManager.
|
overridevirtual |
Notifies manager that level primitives were shifted
Implements IStreamingManager.
|
overridevirtual |
Removes the memory usage of the force inline sound from the streaming cache budget
Reimplemented from IAudioStreamingManager.
Removes a ULevel from the streaming manager.
Implements IStreamingManager.
|
overrideprotectedvirtual |
This can be used to decrease the memory count for external features. Called by FAudioStreamCacheMemoryHandle.
Reimplemented from IAudioStreamingManager.
|
overrideprotectedvirtual |
This can be used to decrement reference counted handles to audio chunks. Called by the destructor of FAudioChunkHandle.
Implements IAudioStreamingManager.
|
overridevirtual |
Used for rendering debug info:
Implements IAudioStreamingManager.
|
overridevirtual |
Implements IAudioStreamingManager.
|
overridevirtual |
Don't stream world resources for the next NumFrames.
Implements IStreamingManager.
Whether to toggle a performance intensive profiling mode the streaming manager.
Implements IAudioStreamingManager.
This will start evicting elements from the cache until either hit our target of bytes or run out of chunks we can free.
| NumBytesToFree | The amount of memory we would like to free, in bytes. |
Implements IAudioStreamingManager.
|
overridevirtual |
Updates streaming, taking into account all current view infos. Can be called multiple times per frame.
| DeltaTime | Time since last call in seconds |
| bProcessEverything | [opt] If true, process all resources with no throttling limits |
Implements IStreamingManager.
|
protected |
Audio chunk caches. These are set up on initialization.