Navigation
API > API/Runtime > API/Runtime/Engine
Used to track pending audio commands from the game thread.
| Name | FAudioCommandFence |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioThread.h |
| Include Path | #include "AudioThread.h" |
Syntax
class FAudioCommandFence
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAudioCommandFence() |
AudioThread.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Fence | UE::Tasks::FTask | The last audio batch task | AudioThread.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BeginFence () |
Adds a fence command to the audio command queue. | AudioThread.h | |
bool IsFenceComplete() |
Return true if the fence is complete | AudioThread.h | |
void Wait
(
bool bProcessGameThreadTasks |
Waits for pending fence commands to retire. Waits for pending fence commands to retire. | AudioThread.h |