![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ContentStreaming.h>
Inheritance diagram for IAudioStreamingManager:Static Public Attributes | |
| static constexpr auto | LoadCompletedDefault = [](EAudioChunkLoadResult) {} |
Protected Member Functions | |
| virtual void | AddReferenceToChunk (const FAudioChunkHandle &InHandle)=0 |
| virtual void | RemoveReferenceToChunk (const FAudioChunkHandle &InHandle)=0 |
| virtual void | AddMemoryCountedFeature (const FAudioStreamCacheMemoryHandle &Feature) |
| virtual void | RemoveMemoryCountedFeature (const FAudioStreamCacheMemoryHandle &Feature) |
Protected Member Functions inherited from IStreamingManager | |
| void | SetupViewInfos (float DeltaTime) |
Static Protected Member Functions | |
| static FAudioChunkHandle | BuildChunkHandle (const uint8 *InData, uint32 NumBytes, const FSoundWaveProxyPtr &InSoundWave, const FName &SoundWaveName, uint32 InChunkIndex, uint64 CacheLookupID) |
Static Protected Member Functions inherited from IStreamingManager | |
| static void | AddViewInfoToArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin, float ScreenSize, float FOVScreenSize, float BoostFactor, bool bOverrideLocation, float Duration, TWeakObjectPtr< AActor > InActorToBoost, TWeakObjectPtr< UWorld > InWorld) |
| static void | RemoveViewInfoFromArray (TArray< FStreamingViewInfo > &ViewInfos, const FVector &ViewOrigin) |
Protected Attributes | |
| friend | FAudioChunkHandle |
| friend | FAudioStreamCacheMemoryHandle |
Protected Attributes inherited from IStreamingManager | |
| int32 | NumWantingResources |
| int32 | NumWantingResourcesCounter |
Additional Inherited Members | |
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 () |
Static Protected Attributes inherited from IStreamingManager | |
| static ENGINE_API TArray< FStreamingViewInfo > | CurrentViewInfos |
| static TArray< FStreamingViewInfo > | PendingViewInfos |
| static TArray< FStreamingViewInfo > | LastingViewInfos |
| static TArray< FSecondaryLocation > | SecondaryLocations |
| static bool | bPendingRemoveViews = false |
Interface to add functions specifically related to audio streaming
|
inlinevirtual |
Adds the memory usage of the force inline sound to the streaming cache budget
Reimplemented in FCachedAudioStreamingManager.
|
inlineprotectedvirtual |
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 in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
protectedpure virtual |
This can be used to increment reference counted handles to audio chunks. Called by the copy constructor of FAudioChunkHandle.
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
staticprotected |
This can be called by implementers of IAudioStreamingManager to construct an FAudioChunkHandle using an otherwise inaccessible constructor.
|
pure virtual |
Generate a memory report as a formatted string for this streaming manager.
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
pure virtual |
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. |
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
inlinevirtual |
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 in FCachedAudioStreamingManager.
|
inlinevirtual |
Removes the memory usage of the force inline sound from the streaming cache budget
Reimplemented in FCachedAudioStreamingManager.
|
inlineprotectedvirtual |
This can be used to decrease the memory count for external features. Called by FAudioStreamCacheMemoryHandle.
Reimplemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
protectedpure virtual |
This can be used to decrement reference counted handles to audio chunks. Called by the destructor of FAudioChunkHandle.
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
pure virtual |
Used for rendering debug info:
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
pure virtual |
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
Whether to toggle a performance intensive profiling mode the streaming manager.
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
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. |
Implemented in FCachedAudioStreamingManager, and FDummyAudioStreamingManager.
|
protected |
|
protected |
|
staticconstexpr |
Manually prepare a chunk to start playing back. This should only be used when the Load On Demand feature is enabled, and returns false on failure.
| SoundWave | SoundWave we would like to request a chunk of. |
| ChunkIndex | the index of that soundwave we'd like to request a chunk of. |
| OnLoadCompleted | optional callback when the load completes. |
| ThreadToCallOnLoadCompleteOn. | Optional specifier for which thread OnLoadCompleted should be called on. |
| bForImmediatePlaybac | if true, this will optionally reprioritize this chunk's load request. |