![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AudioVirtualLoop.h>
Public Member Functions | |
| ENGINE_API | FAudioVirtualLoop () |
| ENGINE_API FActiveSound & | GetActiveSound () |
| ENGINE_API float | GetTimeVirtualized () const |
| const TSortedMap< UPTRINT, float > & | GetEffectivePlaybackTimes () |
| ENGINE_API float | GetUpdateInterval () const |
| ENGINE_API const FActiveSound & | GetActiveSound () const |
| ENGINE_API void | CalculateUpdateInterval () |
| ENGINE_API void | UpdateFocusData (float DeltaTime) |
| ENGINE_API bool | Update (float DeltaTime, bool bForceUpdate) |
Static Public Member Functions | |
| static ENGINE_API bool | ShouldListenerMoveForceUpdate (const FTransform &LastTransform, const FTransform &CurrentTransform) |
| static ENGINE_API bool | Virtualize (const FActiveSound &InActiveSound, bool bDoRangeCheck, FAudioVirtualLoop &OutVirtualLoop) |
| static ENGINE_API bool | Virtualize (const FActiveSound &InActiveSound, FAudioDevice &AudioDevice, bool bDoRangeCheck, FAudioVirtualLoop &OutVirtualLoop) |
| static ENGINE_API bool | IsEnabled () |
Class that tracks virtualized looping active sounds that are eligible to revive re-trigger as long as no stop request is received from the game thread.
| FAudioVirtualLoop::FAudioVirtualLoop | ( | ) |
| void FAudioVirtualLoop::CalculateUpdateInterval | ( | ) |
Overrides the update interval to the provided length
| FActiveSound & FAudioVirtualLoop::GetActiveSound | ( | ) |
Returns the internally-managed active sound
| const FActiveSound & FAudioVirtualLoop::GetActiveSound | ( | ) | const |
| const TSortedMap< UPTRINT, float > & FAudioVirtualLoop::GetEffectivePlaybackTimes | ( | ) |
Returns the effective start time for each wave instance that was virtualized, factoring in pitch multipliers. This map will be empty if the sound was not virtualized with Seek Restart.
| float FAudioVirtualLoop::GetTimeVirtualized | ( | ) | const |
Returns the time the sound has been virtualized
| float FAudioVirtualLoop::GetUpdateInterval | ( | ) | const |
Returns the wait interval being observed before next update
|
static |
Whether the virtual loop system is enabled or not
|
static |
Check to see if listener move is far enough such that a check for virtual loop realization is necessary
Updates the loop and checks if ready to play (or 'realize'). Returns whether or not the sound is ready to be realized.
Takes aggregate update delta and updates focus so that realization check can test if ready to play.
|
static |
Checks if provided active sound is available to be virtualized. If so, returns new active sound ready to be added to virtual loop management by parent audio device.
|
static |