![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Audio.h>
Friends | |
| FArchive & | operator<< (FArchive &Ar, FWaveInstance *WaveInstance) |
| uint32 | GetTypeHash (FWaveInstance *A) |
Structure encapsulating all information required to play a USoundWave on a channel/source. This is required as a single USoundWave object can be used in multiple active cues or multiple times in the same cue.
| PRAGMA_ENABLE_DEPRECATION_WARNINGS FWaveInstance::FWaveInstance | ( | const UPTRINT | InWaveInstanceHash, |
| FActiveSound & | InActiveSound | ||
| ) |
Constructor, initializing all member variables.
Constructor, initializing all member variables.
| InActiveSound | ActiveSound this wave instance belongs to. |
|
default |
| void FWaveInstance::AddReferencedObjects | ( | FReferenceCollector & | Collector | ) |
Function used by the GC.
| float FWaveInstance::GetActualVolume | ( | ) | const |
Returns the actual volume the wave instance will play at, including all gain stages.
| float FWaveInstance::GetDistanceAndOcclusionAttenuation | ( | ) | const |
Returns the combined distance and occlusion attenuation of the source voice.
| float FWaveInstance::GetDistanceAttenuation | ( | ) | const |
Returns the distance attenuation of the source voice
| float FWaveInstance::GetDynamicVolume | ( | ) | const |
Returns the dynamic volume of the sound
| FSoundModulationDestinationSettings FWaveInstance::GetEffectiveModulationSettings | ( | const EModulationDestination | InDestination | ) | const |
| float FWaveInstance::GetEffectiveModulationValue | ( | const EModulationDestination | InDestination | ) | const |
|
inline |
Gets the envelope value of the waveinstance. Only returns non-zero values if it's a real voice. Only implemented in the audio mixer.
| FString FWaveInstance::GetName | ( | ) | const |
Returns the name of the contained USoundWave
| float FWaveInstance::GetOcclusionAttenuation | ( | ) | const |
Returns the occlusion attenuation of the source voice
| float FWaveInstance::GetPitch | ( | ) | const |
Returns the pitch of the wave instance
|
inline |
|
inline |
Retrieves the relative render cost of wave instance.
|
inline |
Whether spatialization is an external send
| bool FWaveInstance::GetUseSpatialization | ( | ) | const |
Whether this wave will be spatialized, which controls 3D effects like panning
| float FWaveInstance::GetVolume | ( | ) | const |
Returns the volume of the wave instance (ignoring application muting)
|
inline |
Returns the volume multiplier on the wave instance.
| float FWaveInstance::GetVolumeWeightedPriority | ( | ) | const |
Returns the weighted priority of the wave instance.
| float FWaveInstance::GetVolumeWithDistanceAndOcclusionAttenuation | ( | ) | const |
Returns the volume of the sound including distance attenuation.
| bool FWaveInstance::IsPlaying | ( | ) | const |
Returns whether or not the WaveInstance is actively playing sound or set to play when silent.
| bool FWaveInstance::IsSeekable | ( | ) | const |
|
inline |
| bool FWaveInstance::IsStreaming | ( | ) | const |
Checks whether wave is streaming and streaming is supported
Notifies the wave instance that the current playback buffer has finished.
Notifies the wave instance that it has finished.
|
default |
Sets the envelope value of the wave instance. Only set if the wave instance is actually generating real audio with a source voice. Only implemented in the audio mixer.
Sets the relative render cost of the wave instance.
|
inline |
Whether spatialization is an external send
Whether to use spatialization, which controls 3D effects like panning
Setters for various values on wave instances.
| bool FWaveInstance::ShouldStopDueToMaxConcurrency | ( | ) | const |
Returns the actual volume the wave instance will play at
Stops the wave instance without notifying NotifyWaveInstanceFinishedHook.
Stops the wave instance without notifying NotifyWaveInstanceFinishedHook. This will NOT stop wave instance if it is set up to loop indefinitely or set to remain active.
|
friend |
|
friend |
Friend archive function used for serialization.
| float FWaveInstance::AbsoluteAzimuth |
The absolute position of the wave instance relative to forward vector of listener.
| FActiveSound* FWaveInstance::ActiveSound |
Active Sound this wave instance belongs to
| float FWaveInstance::AmbientZoneFilterFrequency |
The low pass filter frequency to use due to ambient zones.
| float FWaveInstance::AttenuationDistance |
Distance over which the sound is attenuated.
| float FWaveInstance::AttenuationHighpassFilterFrequency |
The high pass filter frequency to use due to distance attenuation. (using in audio mixer only)
| float FWaveInstance::AttenuationLowpassFilterFrequency |
The low pass filter frequency to use due to distance attenuation.
| TArray<FAttenuationSubmixSendSettings> FWaveInstance::AttenuationSubmixSends |
The submix send settings to use.
| UAudioLinkSettingsAbstract* FWaveInstance::AudioLinkSettingsOverride = nullptr |
| uint32 FWaveInstance::bAlreadyNotifiedHook |
Whether the notify finished hook has been called since the last update/parsenodes
| uint32 FWaveInstance::bApplyRadioFilter |
Set to true if the sound nodes state that the radio filter should be applied
| uint32 FWaveInstance::bCenterChannelOnly |
Whether or not this sound class forces sounds to the center channel
| uint32 FWaveInstance::bEnableBaseSubmix |
Whether or not to render to the main submix
| uint32 FWaveInstance::bEnableBusSends |
Whether or not to enable sending this audio's output to buses.
| uint32 FWaveInstance::bEnableHighPassFilter |
Whether or not to enable the high pass filter
| uint32 FWaveInstance::bEnableLowPassFilter |
Whether or not to enable the low pass filter
| uint32 FWaveInstance::bEnableSourceDataOverride |
Whether or not to use source data overrides
| uint32 FWaveInstance::bEnableSubmixSends |
Whether or not to enable Submix Sends in addition to the Main Submix
| uint32 FWaveInstance::bIsAmbisonics |
Whether or not this wave instance is ambisonics.
| uint32 FWaveInstance::bIsDynamic |
Is this or any of the submixes above it dynamic
| uint32 FWaveInstance::bIsFinished |
Whether wave instanced is finished
| uint32 FWaveInstance::bIsMusic |
Whether or not this wave is music
| uint32 FWaveInstance::bIsOccluded |
Whether or not the sound is occluded.
| uint32 FWaveInstance::bIsPaused |
Whether or not this sound is manually paused
| uint32 FWaveInstance::bIsStarted |
Whether wave instanced has been started
| uint32 FWaveInstance::bIsStopping |
Whether or not this wave instance is stopping.
| uint32 FWaveInstance::bReportedSpatializationWarning |
Prevent spamming of spatialization of surround sounds by tracking if the warning has already been emitted
| uint32 FWaveInstance::bReverb |
Whether or not this wave has reverb applied
| uint32 FWaveInstance::bSpatializationIsExternalSend |
Whether the spatialization method is an external send
| TArray<FSoundSourceBusSendInfo> FWaveInstance::BusSends[(int32) EBusSendType::Count] |
The source bus and/or audio bus sends.
| int32 FWaveInstance::EnvelopeFollowerAttackTime |
The envelope follower attack time in milliseconds.
| int32 FWaveInstance::EnvelopeFollowerReleaseTime |
The envelope follower release time in milliseconds.
| float FWaveInstance::HighPassFilterFrequency |
The high pass filter frequency to use
| float FWaveInstance::LFEBleed |
The amount of a sound to bleed to the LFE channel
| float FWaveInstance::ListenerToSoundDistance |
The distance from this wave instance to the closest listener.
| float FWaveInstance::ListenerToSoundDistanceForPanning |
The distance from this wave instance to the closest listener. (ignoring attenuation override)
| FVector FWaveInstance::Location |
Current location
| ELoopingMode FWaveInstance::LoopingMode |
Looping mode - None, loop with notification, forever
| float FWaveInstance::LowPassFilterFrequency |
The low pass filter frequency to use
| float FWaveInstance::ManualReverbSendLevel |
TODO remove
| float FWaveInstance::NonSpatializedRadiusEnd |
At what distance we are fully non-spatialized
| ENonSpatializedRadiusSpeakerMapMode FWaveInstance::NonSpatializedRadiusMode |
How we are doing the non-spatialized radius feature.
| float FWaveInstance::NonSpatializedRadiusStart |
At what distance we start transforming into non-spatialized soundsource
| FNotifyBufferFinishedHooks FWaveInstance::NotifyBufferFinishedHooks |
Sound nodes to notify when the current audio buffer finishes
| float FWaveInstance::OcclusionFilterFrequency |
The low pass filter frequency to use if the sound is occluded.
| UOcclusionPluginSourceSettingsBase* FWaveInstance::OcclusionPluginSettings |
The occlusion plugin settings to use for the wave instance.
| EAudioOutputTarget::Type FWaveInstance::OutputTarget |
Which output target the sound should play on.
| float FWaveInstance::Pitch |
Current pitch scale.
| float FWaveInstance::PlaybackPercent |
The linear percentage of the Wave which has been played based on its duration. Updated from Mixer Source.
| float FWaveInstance::PlaybackTime |
The playback time of the wave instance. Updated from active sound.
| float FWaveInstance::Priority |
An audio component priority value that scales with volume (post all gain stages) and is used to determine voice playback priority.
| TUniquePtr<Audio::FQuartzQuantizedRequestData> FWaveInstance::QuantizedRequestData |
Quantized Request data
| float FWaveInstance::RadioFilterVolume |
Volume of the radio filter effect
| float FWaveInstance::RadioFilterVolumeThreshold |
The volume at which the radio filter kicks in
| UReverbPluginSourceSettingsBase* FWaveInstance::ReverbPluginSettings |
The occlusion plugin settings to use for the wave instance.
| float FWaveInstance::ReverbSendLevel |
The output reverb send level to use for tje wave instance.
| TObjectPtr<USoundClass> FWaveInstance::SoundClass |
Sound class
| float FWaveInstance::SoundClassFilterFrequency |
The low pass filter frequency to use from sound class.
| USoundSubmixBase* FWaveInstance::SoundSubmix |
Sound submix object to send audio to for mixing in audio mixer.
| TArray<FSoundSubmixSendInfo> FWaveInstance::SoundSubmixSends |
Sound submix sends
| FSharedISourceBufferListenerPtr FWaveInstance::SourceBufferListener |
Source Buffer listener
| USourceDataOverridePluginSourceSettingsBase* FWaveInstance::SourceDataOverridePluginSettings |
The source data override plugin settings to use for the wave instance.
| USoundEffectSourcePresetChain* FWaveInstance::SourceEffectChain |
Sound effect chain
| ESoundSpatializationAlgorithm FWaveInstance::SpatializationMethod |
Which spatialization method to use to spatialize 3d sounds.
| USpatializationPluginSourceSettingsBase* FWaveInstance::SpatializationPluginSettings |
The occlusion plugin settings to use for the wave instance.
| float FWaveInstance::StartTime |
An offset/seek time to play this wave instance.
| float FWaveInstance::StereoSpread |
Amount of spread for 3d multi-channel asset spatialization
| uint8 FWaveInstance::UserIndex |
User / Controller index that owns the sound
| TObjectPtr<USoundWave> FWaveInstance::WaveData |
Wave data
| UPTRINT FWaveInstance::WaveInstanceHash |
Hash value for finding the wave instance based on the path through the cue to get to it