#include <AtomRuntimeManager.h>
|
| | FAtomRuntimeManager () |
| | ~FAtomRuntimeManager () |
| void | AddReferencedObjects (FReferenceCollector &Collector) |
| bool | CreateMainAtomRuntime () |
| void | FreeResource (IAtomSoundResource *InSound) |
| FAtomRuntimeHandle | GetActiveAtomRuntime () |
| FAtomResourceManager & | GetAtomResourceManager () const |
| FAtomRuntimeHandle | GetAtomRuntime (FAtomRuntimeId InRuntimeID) |
| FAtomRuntime * | GetAtomRuntimeRaw (FAtomRuntimeId InRuntimeID) |
| const FAtomRuntime * | GetAtomRuntimeRaw (FAtomRuntimeId InRuntimeID) const |
| TArray< FAtomRuntime * > | GetAtomRuntimes () const |
| uint32 | GetDefaultDSPBufferLength () const |
| FAtomRuntimeParams | GetDefaultParamsForNewWorld () |
| float | GetDynamicSoundVolume (EAtomSoundType SoundType, const FName &SoundName) const |
| FAtomRuntimeHandle | GetMainAtomRuntimeHandle () const |
| FAtomRuntimeId | GetMainAtomRuntimeID () const |
| FAtomRuntime * | GetMainAtomRuntimeRaw () const |
| uint8 | GetNumAtomRuntimes () const |
| uint8 | GetNumMainAtomRuntimeWorlds () const |
| TArray< UWorld * > | GetWorldsUsingAtomRuntime (const FAtomRuntimeId &InRuntimeID) |
| void | InitSoundClasses () |
| bool | IsValidAtomRuntime (FAtomRuntimeId RuntimeID) const |
| bool | IsVisualizeDebug3dEnabled () const |
| void | IterateOverAllRuntimes (TUniqueFunction< void(FAtomRuntimeId, const FAtomRuntime *)> ForEachRuntime) const |
| void | IterateOverAllRuntimes (TUniqueFunction< void(FAtomRuntimeId, FAtomRuntime *)> ForEachRuntime) |
| void | LogListOfAtomRuntimes () |
| void | RegisterSoundClass (UAtomSoundClass *SoundClass) |
| void | RegisterWorld (UWorld *InWorld, FAtomRuntimeId RuntimeID) |
| FAtomRuntimeHandle | RequestAtomRuntime (const FAtomRuntimeParams &InParams) |
| void | ResetAllDynamicSoundVolumes () |
| void | ResetDynamicSoundVolume (EAtomSoundType SoundType, const FName &SoundName) |
| void | SetActiveAtomRuntime (FAtomRuntimeId InRuntimeID) |
| void | SetAtomRuntimeWorld (UWorld &InWorld, FAtomRuntimeId InRuntimeID) |
| void | SetDynamicSoundVolume (EAtomSoundType SoundType, const FName &SoundName, float Volume) |
| void | StopSoundsUsingResource (IAtomSoundResource *InSound, TArray< UAtomComponent * > *StoppedComponents=nullptr) |
| void | ToggleVisualize3dDebug () |
| void | UnregisterSoundClass (UAtomSoundClass *SoundClass) |
| void | UnregisterWorld (UWorld *InWorld, FAtomRuntimeId RuntimeID) |
| void | UpdateAtomRuntimes (bool bGameTicking) |
◆ FAtomRuntimeManager()
| FAtomRuntimeManager::FAtomRuntimeManager |
( |
| ) |
|
◆ ~FAtomRuntimeManager()
| FAtomRuntimeManager::~FAtomRuntimeManager |
( |
| ) |
|
◆ AddReferencedObjects()
| void FAtomRuntimeManager::AddReferencedObjects |
( |
FReferenceCollector & | Collector | ) |
|
Tracks objects in the all Atom runtimes.
◆ AppWillEnterBackground()
| void FAtomRuntimeManager::AppWillEnterBackground |
( |
| ) |
|
|
private |
Application enters background handler
◆ BuildNewHandle()
◆ CanUseAtomRuntime()
This function is used to check if we can use an existing Atom runtime.
◆ CreateMainAtomRuntime()
| bool FAtomRuntimeManager::CreateMainAtomRuntime |
( |
| ) |
|
Creates the main Atom runtime.
◆ CreateNewRuntime()
◆ DecrementRuntime()
| void FAtomRuntimeManager::DecrementRuntime |
( |
FAtomRuntimeId | RuntimeID, |
|
|
UWorld * | InWorld ) |
|
private |
◆ FreeResource()
Frees the given sound resource from the resource manager
◆ Get()
◆ GetActiveAtomRuntime()
Returns a ptr to the active Atom runtime. If there is no active runtime then it will return the main Atom runtime.
◆ GetAtomResourceManager()
Gets a reference to the Atom resource Manager
◆ GetAtomRuntime()
Returns a strong handle to the audio device associated with the given Atom ID. if the Atom ID is invalid returns an invalid, zeroed handle.
◆ GetAtomRuntimeFromWorld()
Get the associated runtime handle to a world.
◆ GetAtomRuntimeFromWorldContext()
| FAtomRuntime * FAtomRuntimeManager::GetAtomRuntimeFromWorldContext |
( |
const UObject * | WorldContextObject | ) |
|
|
static |
Get the associated runtime raw pointer to a world context.
◆ GetAtomRuntimeRaw() [1/2]
Returns a raw ptr to the Atom runtime associated with the handle If the handle is invalid then a nullptr will be returned.
◆ GetAtomRuntimeRaw() [2/2]
◆ GetAtomRuntimeRawFromWorld()
| FAtomRuntime * FAtomRuntimeManager::GetAtomRuntimeRawFromWorld |
( |
const UWorld * | InWorld | ) |
|
|
static |
Get the associated runtime raw pointer to a world.
◆ GetAtomRuntimes()
| TArray< FAtomRuntime * > FAtomRuntimeManager::GetAtomRuntimes |
( |
| ) |
const |
Returns all the Atom runtimes managed by Atom manager.
◆ GetDefaultDSPBufferLength()
| uint32 FAtomRuntimeManager::GetDefaultDSPBufferLength |
( |
| ) |
const |
|
inline |
Atom works best with 256 bytes buffers per channel.
◆ GetDefaultParamsForNewWorld()
◆ GetDynamicSoundVolume()
| float FAtomRuntimeManager::GetDynamicSoundVolume |
( |
EAtomSoundType | SoundType, |
|
|
const FName & | SoundName ) const |
Get, reset, or set a sound cue trim
◆ GetMainAtomRuntimeHandle()
Returns the handle to the main Atom runtime.
◆ GetMainAtomRuntimeID()
◆ GetMainAtomRuntimeRaw()
| FAtomRuntime * FAtomRuntimeManager::GetMainAtomRuntimeRaw |
( |
| ) |
const |
|
inline |
◆ GetNewRuntimeID()
| uint32 FAtomRuntimeManager::GetNewRuntimeID |
( |
| ) |
|
|
private |
Creates a handle given the index and a generation value.
◆ GetNumAtomRuntimes()
| uint8 FAtomRuntimeManager::GetNumAtomRuntimes |
( |
| ) |
const |
Returns the current number of Atom runtimes.
◆ GetNumMainAtomRuntimeWorlds()
| uint8 FAtomRuntimeManager::GetNumMainAtomRuntimeWorlds |
( |
| ) |
const |
Returns the number of worlds (e.g. PIE viewports) using the main Atom runtime.
◆ GetWorldsUsingAtomRuntime()
| TArray< UWorld * > FAtomRuntimeManager::GetWorldsUsingAtomRuntime |
( |
const FAtomRuntimeId & | InRuntimeID | ) |
|
Returns all the worlds associated with the given Atom ID.
◆ IncrementRuntime()
| void FAtomRuntimeManager::IncrementRuntime |
( |
FAtomRuntimeId | RuntimeID | ) |
|
|
private |
◆ Initialize()
| bool FAtomRuntimeManager::Initialize |
( |
| ) |
|
|
static |
Initialize the Atom manager. Return true if successfully initialized.
◆ InitializeManager()
| bool FAtomRuntimeManager::InitializeManager |
( |
| ) |
|
|
private |
◆ InitSoundClasses()
| void FAtomRuntimeManager::InitSoundClasses |
( |
| ) |
|
Initializes sound classes for all active runtimes.
◆ IsValidAtomRuntime()
| bool FAtomRuntimeManager::IsValidAtomRuntime |
( |
FAtomRuntimeId | RuntimeID | ) |
const |
Returns whether the Atom runtime handle is valid (i.e. points to an actual runtime instance).
◆ IsVisualizeDebug3dEnabled()
| bool FAtomRuntimeManager::IsVisualizeDebug3dEnabled |
( |
| ) |
const |
Is debug visualization of 3d sounds enabled
◆ IterateOverAllRuntimes() [1/2]
| void FAtomRuntimeManager::IterateOverAllRuntimes |
( |
TUniqueFunction< void(FAtomRuntimeId, const FAtomRuntime *)> | ForEachRuntime | ) |
const |
◆ IterateOverAllRuntimes() [2/2]
Iterator for each Atom runtime.
◆ LogListOfAtomRuntimes()
| void FAtomRuntimeManager::LogListOfAtomRuntimes |
( |
| ) |
|
◆ RegisterSoundClass()
| void FAtomRuntimeManager::RegisterSoundClass |
( |
UAtomSoundClass * | SoundClass | ) |
|
Registers the sound class for all active runtimes.
◆ RegisterWorld()
| void FAtomRuntimeManager::RegisterWorld |
( |
UWorld * | InWorld, |
|
|
FAtomRuntimeId | RuntimeID ) |
Registers the world with the provided Atom ID.
◆ RequestAtomRuntime()
Creates an Atom runtime instance internally and returns a handle to the Atom runtime. This Atom runtime is guaranteed to be alive as long as the returned handle is in scope.
◆ ResetAllDynamicSoundVolumes()
| void FAtomRuntimeManager::ResetAllDynamicSoundVolumes |
( |
| ) |
|
Reset all sound cue trims
◆ ResetDynamicSoundVolume()
| void FAtomRuntimeManager::ResetDynamicSoundVolume |
( |
EAtomSoundType | SoundType, |
|
|
const FName & | SoundName ) |
◆ SetActiveAtomRuntime()
| void FAtomRuntimeManager::SetActiveAtomRuntime |
( |
FAtomRuntimeId | InRuntimeID | ) |
|
Sets which Atom runtime is the active Atom runtime.
◆ SetAtomRuntimeWorld()
| void FAtomRuntimeManager::SetAtomRuntimeWorld |
( |
UWorld & | InWorld, |
|
|
FAtomRuntimeId | InRuntimeID ) |
Sets the Atom runtime associated with the given world.
◆ SetDynamicSoundVolume()
| void FAtomRuntimeManager::SetDynamicSoundVolume |
( |
EAtomSoundType | SoundType, |
|
|
const FName & | SoundName, |
|
|
float | Volume ) |
◆ Shutdown()
| void FAtomRuntimeManager::Shutdown |
( |
| ) |
|
|
static |
◆ StopSoundsUsingResource()
Stops sounds using the given resource in all Atom runtimes.
◆ ToggleVisualize3dDebug()
| void FAtomRuntimeManager::ToggleVisualize3dDebug |
( |
| ) |
|
Toggles 3d visualization of 3d sounds on/off
◆ UnregisterSoundClass()
| void FAtomRuntimeManager::UnregisterSoundClass |
( |
UAtomSoundClass * | SoundClass | ) |
|
Unregisters the sound class for all active runtimes.
◆ UnregisterWorld()
| void FAtomRuntimeManager::UnregisterWorld |
( |
UWorld * | InWorld, |
|
|
FAtomRuntimeId | RuntimeID ) |
Unregisters the world from the provided Atom ID.
◆ UpdateAtomRuntimes()
| void FAtomRuntimeManager::UpdateAtomRuntimes |
( |
bool | bGameTicking | ) |
|
◆ FAtomRuntimeHandle
◆ ActiveAtomRuntimeID
Which audio device is currently active
◆ AtomMixerModuleName
| FString FAtomRuntimeManager::AtomMixerModuleName |
|
private |
The Atom mixer module name. This is the Atom mixer module name to use. E.g. AtomMixerXAudio
◆ AtomRuntimeModule
Atom runtime module which creates (old backend) Atom mixer runtime.
◆ DynamicSoundVolumes
| TMap<TTuple<EAtomSoundType, FName>, float> FAtomRuntimeManager::DynamicSoundVolumes |
|
private |
◆ MainAtomRuntimeHandle
Handle to the main audio device.
◆ ResourceManager
The Atom resource manager, should always exist.
◆ RuntimeIDCounter
| uint32 FAtomRuntimeManager::RuntimeIDCounter |
|
private |
Counter used by GetNewAtomID() to generate a unique ID for a given Atom runtime.
◆ RuntimeMapCriticalSection
| FCriticalSection FAtomRuntimeManager::RuntimeMapCriticalSection |
|
mutableprivate |
◆ Runtimes
Bank of Atom runtimes. Will increase in size as we create new Atom runtimes,
◆ Singleton
◆ SyncFence
Audio Fence to ensure that we don't allow the audio thread to drift never endingly behind.
このクラス詳解は次のファイルから抽出されました: