Navigation
API > API/Plugins > API/Plugins/AudioGameplayVolume
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UAudioEngineSubsystem
- UAudioGameplayVolumeSubsystem
References
| Module | AudioGameplayVolume |
| Header | /Engine/Plugins/AudioGameplayVolume/Source/AudioGameplayVolume/Public/AudioGameplayVolumeSubsystem.h |
| Include | #include "AudioGameplayVolumeSubsystem.h" |
Syntax
UCLASS&40;&41;
class UAudioGameplayVolumeSubsystem :
public UAudioEngineSubsystem,
public IActiveSoundUpdateInterface
Remarks
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< uint32, FAudioGameplayActiveSoundInfo > | ActiveSoundData | A collection of data about currently playing active sounds, indexed by the sound's unique ID. | |
| TMap< uint32, TObjectPtr< const UAudioGameplayVolumeComponent > > | AGVComponents | Components in our system. | |
| TArray< FAudioGameplayVolumeListener > | AGVListeners | Audio thread representation of Listeners. | |
| bool | bHasStaleProxy | Force an enter / exit of a volume to handle data changing while a proxy is active. | |
| float | NextUpdateDeltaTime | Time when next update happens relative to last update. | |
| int32 | PreviousProxyCount | The number of proxy volumes from the previous update. | |
| TArray< TWeakObjectPtr< UAudioGameplayVolumeProxy > > | ProxyVolumes | Audio thread representation of Volumes. | |
| float | TimeSinceUpdate | Time since last update call, in seconds. | |
| TMap< uint32, FAudioGameplayVolumeProxyInfo > | WorldProxyLists | A collection of listener & volume intersection data, by worldID. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddProxy
(
TWeakObjectPtr< UAudioGameplayVolumeProxy > WeakProxy |
(Audio Thread Only) Add, Update, Remove ProxyVolumes | |
| void | AddVolumeComponent
(
const UAudioGameplayVolumeComponent* VolumeComponent |
Add a volume to the system | |
| bool | DoesSupportWorld
(
UWorld* World |
Returns true if we allow volumes from the world's type | |
| bool | IsAnyListenerInVolume
(
uint32 WorldID, |
Returns true if a listener associated with WorldID is inside the volume (by ID) | |
| bool | RemoveProxy
(
uint32 AudioGameplayVolumeID |
||
| void | RemoveVolumeComponent
(
const UAudioGameplayVolumeComponent* VolumeComponent |
Remove a volume from the system | |
| void | UpdateComponentsFromProxyInfo
(
const FAudioGameplayProxyUpdateResult& ProxyResults |
Update the components driven by proxies on the game thread | |
| void | Update our representation of audio listeners on the audio thread | ||
| bool | UpdateProxy
(
TWeakObjectPtr< UAudioGameplayVolumeProxy > WeakProxy |
||
| void | UpdateVolumeComponent
(
const UAudioGameplayVolumeComponent* VolumeComponent |
Update an existing volume in the system |
Overridden from UAudioEngineSubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Update () |
Override to get an update call during AudioDevice::Update Note: This call will happen on the audio thread |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| bool | ShouldCreateSubsystem
(
UObject* Outer |
Override to control if the Subsystem should be created at all. |
Overridden from IActiveSoundUpdateInterface
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyInteriorSettings
(
const FActiveSound& ActiveSound, |
Applies interior data previously collected to the active sound and parse parameters. | |
| void | GatherInteriorData
(
const FActiveSound& ActiveSound, |
Gathers interior data that can affect the active sound. | |
| void | OnNotifyPendingDelete
(
const FActiveSound& ActiveSound |
Called when the active sound is being removed from the audio engine NOTE! Called on the AudioThread |