Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- ISoundModulatable
- FActiveSound
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/ActiveSound.h |
| Include | #include "ActiveSound.h" |
Syntax
struct FActiveSound : public ISoundModulatable
Variables
| Type | Name | Description | |
|---|---|---|---|
| FSoundAttenuationSettings | AttenuationSettings | ||
| FAudioDevice * | AudioDevice | ||
| uint32 | AudioVolumeID | ||
| TArray< FAudioVolumeSubmixSendSettings > | AudioVolumeSubmixSendSettings | ||
| uint8: 1 | bAllowSpatialization | Is this sound allowed to be spatialized? | |
| uint8: 1 | bAlwaysPlay | Whether to artificially prioritize the component to play | |
| uint8: 1 | bApplyInteriorVolumes | Whether some part of this sound will want interior sounds to be applied | |
| uint8: 1 | bApplyRadioFilter | If true, this sound will not be stopped when flushing the audio device. | |
| FThreadSafeBool | bAsyncOcclusionPending | Whether or not there is an async occlusion trace pending | |
| uint8: 1 | bCenterChannelOnly | Whether or not this sound class forces sounds to the center channel | |
| uint8: 1 | bEnableBusSendRoutingOverride | What the value of the enablement overrides are. | |
| uint8: 1 | bEnableLowPassFilter | Whether or not we have a low-pass filter enabled on this active sound. | |
| uint8: 1 | bEnableMainSubmixOutputOverride | ||
| uint8: 1 | bEnableSubmixSendRoutingOverride | ||
| uint8: 1 | bFinished | Whether the current component has finished playing | |
| uint8: 1 | bGotInteriorSettings | Whether we have queried for the interior settings at least once | |
| uint8: 1 | bHandleSubtitles | If true, the AudioComponent will be notified when a Wave is started to handle subtitles | |
| uint8: 1 | bHasActiveBusSendRoutingOverride | Whether or not we are overriding the routing enablement options on sounds. | |
| uint8: 1 | bHasActiveMainSubmixOutputOverride | ||
| uint8: 1 | bHasActiveSubmixSendRoutingOverride | ||
| uint8: 1 | bHasAttenuationSettings | Does this sound have attenuation settings specified. | |
| uint8: 1 | bHasCheckedOcclusion | Whether or not the sound has checked if it was occluded already. | |
| uint8: 1 | bHasExternalSubtitles | If true, subtitles are being provided for the sound externally, so it still needs to make sure the sound plays to trigger the subtitles. | |
| bool | bHasNewBusSends | Whether or not there are Source Bus Sends that have not been sent to the render thread. | |
| uint8: 1 | bHasVirtualized | Whether or not sound has been virtualized and then realized | |
| uint8: 1 | bIgnoreForFlushing | If true, this sound will not be stopped when flushing the audio device. | |
| uint8: 1 | bIsFirstAttenuationUpdate | ||
| uint8: 1 | bIsMusic | Whether or not this audio component is a music clip | |
| FThreadSafeBool | bIsOccluded | Whether we were occluded the last time we checked | |
| uint8: 1 | bIsPaused | Whether or not the active sound is paused. Independently set vs global pause or unpause. | |
| uint8: 1 | bIsPlayingAudio | Whether or not this active sound is playing audio, as in making audible sounds. | |
| uint8: 1 | bIsPreviewSound | Whether or not this active sound is a preview sound | |
| uint8: 1 | bIsStopping | Whether or not the active sound is stopping. | |
| uint8: 1 | bIsUISound | Whether or not this sound plays when the game is paused in the UI | |
| uint8: 1 | bLocationDefined | Whether the Location of the component is well defined | |
| uint8: 1 | bModulationRoutingUpdated | ||
| uint8: 1 | bRadioFilterSelected | If true, the decision on whether to apply the radio filter has been made. | |
| uint8: 1 | bReverb | Whether or not the audio component should be excluded from reverb EQ processing | |
| uint8: 1 | bShouldRemainActiveIfDropped | Whether the wave instances should remain active if they're dropped by the prioritization code. | |
| bool | bShouldSourceBufferListenerZeroBuffer | ||
| uint8: 1 | bShouldStopDueToMaxConcurrency | Whether or not to stop this active sound due to max concurrency | |
| uint8: 1 | bStartedWithinNonBinauralRadius | ||
| uint8: 1 | bUpdateMultiEnvelopeValue | Whether or not this active sound will update the average envelope value of every wave instance that plays a sound source. | |
| uint8: 1 | bUpdatePlaybackTime | Whether or not the active sound should update it's owning audio component's playback time. | |
| uint8: 1 | bUpdatePlayPercentage | Whether or not this active sound will update play percentage. | |
| uint8: 1 | bUpdateSingleEnvelopeValue | Whether or not this active sound will update the envelope value of every wave instance that plays a sound source. | |
| uint8: 1 | bWarnedAboutOrphanedLooping | For debugging purposes, output to the log once that a looping sound has been orphaned | |
| Audio::FVolumeFader | ComponentVolumeFader | Fader that tracks component volume | |
| TMap< FConcurrencyGroupID, FConcurrencySoundData > | ConcurrencyGroupData | The concurrent groups that this sound is actively playing in. | |
| TSet< TObjectPtr< USoundConcurrency > > | ConcurrencySet | Optional USoundConcurrency to override for the sound. | |
| float | CurrentInteriorLPF | ||
| float | CurrentInteriorVolume | ||
| FDynamicParameter | CurrentOcclusionFilterFrequency | The interpolated parameter for the low-pass frequency due to occlusion. | |
| FDynamicParameter | CurrentOcclusionVolumeAttenuation | The interpolated parameter for the volume attenuation due to occlusion. | |
| FColor | DebugColor | ||
| int32 | EnvelopeFollowerAttackTime | Envelope follower attack and release time parameters. | |
| int32 | EnvelopeFollowerReleaseTime | ||
| EFadeOut | FadeOut | Type of fade out currently being applied | |
| FAttenuationFocusData | FocusData | Cached data pertaining to focus system updated each frame | |
| FInteriorSettings | InteriorSettings | Cache what volume settings we had last time so we don't have to search again if we didn't move | |
| FVector | LastLocation | Location last time playback was updated | |
| float | LastOcclusionCheckTime | Last time we checked for occlusion | |
| double | LastUpdateTime | To remember where the volumes are interpolating to and from. | |
| float | LowPassFilterFrequency | The low-pass filter frequency to apply if bEnableLowPassFilter is true. | |
| float | MaxDistance | The max distance this sound will be audible. | |
| float | MinCurrentPitch | ||
| FSoundModulationDefaultRoutingSettings | ModulationRouting | ||
| TArray< TTuple< EBusSendType, FSoundSourceBusSendInfo > > | NewBusSends | Bus send(s) that have not yet been sent to the render thread. | |
| float | OcclusionCheckInterval | The time in seconds with which to check for occlusion from its closest listener | |
| float | PitchMultiplier | ||
| float | PlaybackTime | Duration between now and when the sound has been started. | |
| float | PlaybackTimeNonVirtualized | If virtualized, duration between last time virtualized and now. | |
| TArray< FAudioVolumeSubmixSendSettings > | PreviousAudioVolumeSubmixSendSettings | ||
| float | Priority | The product of the component priority and the USoundBase priority | |
| Audio::FQuartzQuantizedRequestData | QuantizedRequestData | Quantization information | |
| float | RequestedStartTime | ||
| TArray< uint8 > | SoundNodeData | ||
| TMap< UPTRINT, uint32 > | SoundNodeOffsetMap | ||
| FSharedISourceBufferListenerPtr | SourceBufferListener | Source buffer listener | |
| float | SourceInteriorLPF | ||
| float | SourceInteriorVolume | ||
| float | SubtitlePriority | ||
| FTransform | Transform | ||
| uint8 | UserIndex | ||
| float | VolumeConcurrency | The volume used to determine concurrency resolution for "quietest" active sound. | |
| float | VolumeMultiplier |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FActiveSound () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
||
| void | AddVolumeSubmixSends
(
FSoundParseParameters& ParseParams, |
Apply the submix sends to our parse params as appropriate | |
| FWaveInstance & | AddWaveInstance
(
const UPTRINT WaveInstanceHash |
Add newly created wave instance to active sound | |
| void | ApplyRadioFilter
(
const FSoundParseParameters& ParseParams |
Check whether to apply the radio filter | |
| bool | CanDelete () |
Returns whether or not the active sound can be deleted. | |
| void | |||
| void | |||
| void | |||
| FActiveSound * | CreateVirtualCopy
(
const FActiveSound& ActiveSoundToCopy, |
||
| int32 | FindClosestListener
(
const TArray< struct FListener >& InListeners |
Determines which of the provided listeners is the closest to the sound | |
| int32 | Determines which listener is the closest to the sound | ||
| FWaveInstance * | FindWaveInstance
(
const UPTRINT WaveInstanceHash |
Find an existing waveinstance attached to this audio component (if any) | |
| bool | Returns whether or not sound or any active wave instances it manages are set to always play | ||
| uint64 | |||
| FString | |||
| FName | |||
| void | GetBusSends
(
EBusSendType BusSendType, |
Gets the sound source bus sends to use for this sound instance. | |
| int32 | |||
| bool | GetConcurrencyFadeDuration
(
float& OutFadeDuration |
||
| void | GetConcurrencyHandles
(
TArray< FConcurrencyHandle >& OutConcurrencyHandles |
Gets the sound concurrency handles applicable to this sound instance | |
| float | GetHighestPriority
(
bool bIgnoreAlwaysPlay |
Returns the highest effective priority of the child wave instances. | |
| uint32 | Returns a unique identifier for this active sound object | ||
| TArray< TTuple< EBusSendType, FSoundSourceBusSendInfo > > const & | Lets the audio thread know if additional Source Bus Send information has been added | ||
| FSoundOwnerObjectID | GetOwnerID () |
Returns the unique ID of the active sound's owner if it exists. | |
| FString | GetOwnerName () |
||
| float | GetPitch () |
||
| uint32 | GetPlayOrder () |
||
| USoundBase * | GetSound () |
||
| USoundClass * | Get the sound class to apply on this sound instance | ||
| USoundSubmixBase * | Get the sound submix to use for this sound instance | ||
| void | GetSoundSubmixSends
(
TArray< FSoundSubmixSendInfo >& OutSends |
Gets the sound submix sends to use for this sound instance. | |
| USoundEffectSourcePresetChain * | |||
| float | Gets total concurrency gain stage based on all concurrency memberships of sound | ||
| const Audio::IParameterTransmitter * | |||
| Audio::IParameterTransmitter * | |||
| float | GetVolume () |
Gets volume product all gain stages pertaining to active sound | |
| const TMap< UPTRINT, FWaveInstance * > & | |||
| TWeakObjectPtr< UWorld > | GetWeakWorld () |
||
| UWorld * | GetWorld () |
||
| uint32 | GetWorldID () |
||
| bool | Checks whether there are Source Bus Sends that have not yet been updated | ||
| bool | IsLooping () |
Whether or not the active sound is a looping sound. | |
| bool | IsOneShot () |
Whether or not the active sound a one-shot sound. | |
| bool | Whether or not the active sound is currently playing audible sound. | ||
| bool | Whether or not sound reference is valid and set to play when silent. | ||
| void | OcclusionTraceDone
(
const FTraceHandle& TraceHandle, |
Delegate callback function when an async occlusion trace completes | |
| void | ParseAttenuation
(
FSoundParseParameters& OutParseParams, |
Applies the active sound's attenuation settings to the input parse params using the given listener | |
| void | RemoveWaveInstance
(
const UPTRINT WaveInstanceHash |
||
| void | Resets internal data of new Source Bus Sends | ||
| void | SetAudioComponent
(
const UAudioComponent& Component |
||
| void | SetAudioComponent
(
const FActiveSound& ActiveSound |
||
| void | SetAudioDevice
(
FAudioDevice* InAudioDevice |
||
| void | SetNewModulationRouting
(
const FSoundModulationDefaultRoutingSettings& NewRouting |
Gives new Modulation Routing settings to the Active Sound. | |
| void | |||
| void | SetPitch
(
float Value |
||
| void | SetSound
(
USoundBase* InSound |
||
| void | SetSoundClass
(
USoundClass* SoundClass |
||
| void | SetSourceBusSend
(
EBusSendType BusSendType, |
Sets the amount of audio from this active sound to send to the source bus. | |
| void | SetSourceEffectChain
(
USoundEffectSourcePresetChain* InSourceEffectChain |
||
| void | SetSourceListener
(
FSharedISourceBufferListenerPtr InListener, |
||
| void | SetSubmixSend
(
const FSoundSubmixSendInfo& SubmixSendInfo |
Sets the amount of audio from this active sound to send to the submix. | |
| void | SetVolume
(
float Value |
||
| void | |||
| void | UpdateAttenuation
(
float DeltaTime, |
Updates the active sound's attenuation settings to the input parse params using the given listener | |
| void | UpdateFocusData
(
float DeltaTime, |
Updates the provided focus data using the local | |
| void | UpdateInterfaceParameters
(
const TArray< FListener >& InListeners |
||
| void | UpdateWaveInstances
(
TArray< FWaveInstance* >& OutWaveInstances, |
Updates the wave instances to be played. |
Overridden from ISoundModulatable
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetObjectId () |
Gets the object definition id of the given playing sound's instance | |
| int32 | GetPlayCount () |
Returns number of actively instances of sound playing (including virtualized instances) | |
| bool | Returns whether or not sound is an editor preview sound | ||
| void | Stop () |
Stops sound. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFadeOut |
Constants
| Name | Description |
|---|---|
| ActiveSoundTraceDelegate | |
| TraceToActiveSoundMap |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ParseAttenuation
(
FSoundParseParameters& OutParseParams, |
Use ParseAttenuation that passes a ListenerIndex instead | |
| void | UpdateAttenuation
(
float DeltaTime, |
Use UpdateAttenuation that passes a ListenerIndex instead |