Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FNoncopyable
- FAudioStreamCacheMemoryHandle
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/AudioStreamCacheMemoryHandle.h |
| Include | #include "AudioStreamCacheMemoryHandle.h" |
Syntax
class FAudioStreamCacheMemoryHandle : public FNoncopyable
Remarks
Class for utilizing memory in the stream cache budget for an unrelated, temporary audio-based feature. Allows us to borrow from budgeted memory for audio features that would otherwise not fit in the overall memory budget.
Usage:
- Create an instance of this class on an object or subsystem where want to track memory usage
- Memory usage will immediately be taken out of the Audio Stream Cache budget on construction of the object
- Update memory usage via this class as necessary.
- Deleting the instance will automatically reset the memory usage to 0
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAudioStreamCacheMemoryHandle
(
FName InFeatureName, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| uint64 | |||
| void | ResetMemoryUseInBytes
(
uint64 InMemoryUseInBytes |