![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SoundConcurrency.h>
Public Member Functions | |
| FConcurrencyGroup (FConcurrencyGroupID GroupID, const FConcurrencyHandle &ConcurrencyHandle) | |
| const TArray< FActiveSound * > & | GetActiveSounds () const |
| FConcurrencyGroupID | GetGroupID () const |
| const int32 | GetNextGeneration () const |
| const FSoundConcurrencySettings & | GetSettings () const |
| FConcurrencyObjectID | GetObjectID () const |
| bool | IsEmpty () const |
| bool | IsFull () const |
| void | AddActiveSound (FActiveSound &ActiveSound) |
| void | RemoveActiveSound (FActiveSound &ActiveSound) |
| void | UpdateGeneration (FActiveSound *NewActiveSound=nullptr) |
| void | CullSoundsDueToMaxConcurrency () |
| void | SetLastTimePlayed (float InLastTimePlayed) |
| bool | CanPlaySoundNow (float InCurrentTime) const |
Static Public Member Functions | |
| static FConcurrencyGroupID | GenerateNewID () |
Class which tracks array of active sound pointers for concurrency management
| FConcurrencyGroup::FConcurrencyGroup | ( | FConcurrencyGroupID | GroupID, |
| const FConcurrencyHandle & | ConcurrencyHandle | ||
| ) |
Constructor for the max concurrency active sound entry.
| void FConcurrencyGroup::AddActiveSound | ( | FActiveSound & | ActiveSound | ) |
Adds an active sound to the active sound array.
Whether or not a sound would be rate limited if it tried to play right now.
| void FConcurrencyGroup::CullSoundsDueToMaxConcurrency | ( | ) |
Sorts the active sound if concurrency settings require culling post playback
|
static |
| const TArray< FActiveSound * > & FConcurrencyGroup::GetActiveSounds | ( | ) | const |
Returns the active sounds array.
| FConcurrencyGroupID FConcurrencyGroup::GetGroupID | ( | ) | const |
Returns the id of the concurrency group
| const int32 FConcurrencyGroup::GetNextGeneration | ( | ) | const |
Returns the current generation (effectively, the number of concurrency sound instances active)
| FConcurrencyObjectID FConcurrencyGroup::GetObjectID | ( | ) | const |
Returns the parent object ID
| const FSoundConcurrencySettings & FConcurrencyGroup::GetSettings | ( | ) | const |
Returns the settings associated with the group
| bool FConcurrencyGroup::IsEmpty | ( | ) | const |
Determines if the group is full.
| bool FConcurrencyGroup::IsFull | ( | ) | const |
Determines if the group is full.
| void FConcurrencyGroup::RemoveActiveSound | ( | FActiveSound & | ActiveSound | ) |
Removes an active sound from the active sound array.
Sets when the last time a sound was played on this concurrency group.
| void FConcurrencyGroup::UpdateGeneration | ( | FActiveSound * | NewActiveSound = nullptr | ) |
Updates volume based on distance generation if set as VolumeScaleMode