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. 更多...
#include <AudioVirtualLoop.h>
Public 成员函数 | |
| void | CalculateUpdateInterval () |
| Overrides the update interval to the provided length | |
| FActiveSound & | GetActiveSound () |
| Returns the internally-managed active sound | |
| float | GetTimeVirtualized () const |
| Returns the time the sound has been virtualized | |
| float | GetUpdateInterval () const |
| Returns the wait interval being observed before next update | |
| bool | Update (float DeltaTime, bool bForceUpdate) |
| Updates the loop and checks if ready to play (or 'realize'). 更多... | |
| void | UpdateFocusData (float DeltaTime) |
| Takes aggregate update delta and updates focus so that realization check can test if ready to play. | |
静态 Public 成员函数 | |
| static bool | IsEnabled () |
| Whether the virtual loop system is enabled or not | |
| static bool | ShouldListenerMoveForceUpdate (const FTransform &LastTransform, const FTransform &CurrentTransform) |
| Check to see if listener move is far enough such that a check for virtual loop realization is necessary | |
| static bool | Virtualize (const FActiveSound &InActiveSound, bool bDoRangeCheck, FAudioVirtualLoop &OutVirtualLoop) |
| Checks if provided active sound is available to be virtualized. 更多... | |
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.
| bool FAudioVirtualLoop::Update | ( | float | DeltaTime, |
| bool | bForceUpdate | ||
| ) |
Updates the loop and checks if ready to play (or 'realize').
Returns whether or not the sound is ready to be realized.
|
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.