engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 静态 Public 属性 | 友元 | 所有成员列表
FWaveInstance结构体 参考

Structure encapsulating all information required to play a USoundWave on a channel/source. 更多...

#include <Audio.h>

Public 成员函数

void AddReferencedObjects (FReferenceCollector &Collector)
 Function used by the GC.
 
 FWaveInstance (const UPTRINT InWaveInstanceHash, FActiveSound &ActiveSound)
 Constructor, initializing all member variables.
 
float GetActualVolume () const
 Returns the actual volume the wave instance will play at, including all gain stages.
 
float GetDistanceAttenuation () const
 Returns the distance attenuation of the source voice.
 
float GetDynamicVolume () const
 Returns the dynamic volume of the sound
 
float GetEnvelopeValue () const
 Gets the envelope value of the waveinstance. 更多...
 
FString GetName () const
 Returns the name of the contained USoundWave
 
float GetPitch () const
 Returns the pitch of the wave instance
 
bool GetUseSpatialization () const
 Whether this wave will be spatialized, which controls 3D effects like panning
 
float GetVolume () const
 Returns the volume of the wave instance (ignoring application muting)
 
float GetVolumeMultiplier () const
 Returns the volume multiplier on the wave instance.
 
float GetVolumeWeightedPriority () const
 Returns the weighted priority of the wave instance.
 
float GetVolumeWithDistanceAttenuation () const
 Returns the volume of the sound including distance attenuation.
 
bool IsPlaying () const
 Returns whether or not the WaveInstance is actively playing sound or set to play when silent.
 
bool IsStreaming () const
 Checks whether wave is streaming and streaming is supported
 
void NotifyFinished (const bool bStopped=false)
 Notifies the wave instance that the current playback buffer has finished.
 
void SetEnvelopeValue (const float InEnvelopeValue)
 Sets the envelope value of the wave instance. 更多...
 
void SetUseSpatialization (const bool InUseSpatialization)
 Whether to use spatialization, which controls 3D effects like panning
 
void SetVolume (const float InVolume)
 Setters for various values on wave instances.
 
bool ShouldStopDueToMaxConcurrency () const
 Returns the actual volume the wave instance will play at
 
void StopWithoutNotification ()
 Stops the wave instance without notifying NotifyWaveInstanceFinishedHook.
 

Public 属性

float AbsoluteAzimuth
 The absolute position of the wave instance relative to forward vector of listener.
 
FActiveSound * ActiveSound
 Active Sound this wave instance belongs to
 
float AmbientZoneFilterFrequency
 The low pass filter frequency to use due to ambient zones.
 
float AttenuationDistance
 Distance over which the sound is attenuated.
 
float AttenuationHighpassFilterFrequency
 The high pass filter frequency to use due to distance attenuation. 更多...
 
float AttenuationLowpassFilterFrequency
 The low pass filter frequency to use due to distance attenuation.
 
uint32 bAlreadyNotifiedHook:1
 Whether the notify finished hook has been called since the last update/parsenodes
 
uint32 bApplyRadioFilter:1
 Set to true if the sound nodes state that the radio filter should be applied
 
uint32 bCenterChannelOnly:1
 Whether or not this sound class forces sounds to the center channel
 
uint32 bEnableLowPassFilter:1
 Whether or not to enable the low pass filter
 
uint32 bIsAmbisonics:1
 Whether or not this wave instance is ambisonics.
 
uint32 bIsFinished:1
 Whether wave instanced is finished
 
uint32 bIsMusic:1
 Whether or not this wave is music
 
uint32 bIsOccluded:1
 Whether or not the sound is occluded.
 
uint32 bIsPaused:1
 Whether or not this sound is manually paused
 
uint32 bIsStarted:1
 Whether wave instanced has been started
 
uint32 bIsStopping:1
 Whether or not this wave instance is stopping.
 
uint32 bIsUISound:1
 Whether or not this sound plays when the game is paused in the UI
 
uint32 bOutputToBusOnly:1
 Whether or not to only output this wave instances audio to buses only. 更多...
 
uint32 bReportedSpatializationWarning:1
 Prevent spamming of spatialization of surround sounds by tracking if the warning has already been emitted
 
uint32 bReverb:1
 Whether or not this wave has reverb applied
 
TArray< FSoundSourceBusSendInfo > BusSends [(int32) EBusSendType::Count]
 The source bus and/or audio bus sends.
 
FRuntimeFloatCurve CustomRevebSendCurve
 Custom reverb send curve.
 
int32 EnvelopeFollowerAttackTime
 The envelope follower attack time in milliseconds.
 
int32 EnvelopeFollowerReleaseTime
 The envelope follower release time in milliseconds.
 
float LFEBleed
 The amount of a sound to bleed to the LFE channel
 
float ListenerToSoundDistance
 The distance from this wave instance to the closest listener.
 
float ListenerToSoundDistanceForPanning
 The distance from this wave instance to the closest listener. 更多...
 
FVector Location
 Current location
 
ELoopingMode LoopingMode
 Looping mode - None, loop with notification, forever
 
float LowPassFilterFrequency
 The low pass filter frequency to use
 
float ManualReverbSendLevel
 The manual send level to use if the sound is set to use manual send level.
 
FNotifyBufferFinishedHooks NotifyBufferFinishedHooks
 Sound nodes to notify when the current audio buffer finishes
 
float OcclusionFilterFrequency
 The low pass filter frequency to use if the sound is occluded.
 
UOcclusionPluginSourceSettingsBase * OcclusionPluginSettings
 The occlusion plugin settings to use for the wave instance.
 
float OmniRadius
 At what distance we start transforming into omnidirectional soundsource
 
EAudioOutputTarget::Type OutputTarget
 Which output target the sound should play on.
 
float Pitch
 Current pitch scale.
 
float PlaybackTime
 The playback time of the wave instance. 更多...
 
float 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 > QuantizedRequestData
 Quantized Request data
 
float RadioFilterVolume
 Volume of the radio filter effect
 
float RadioFilterVolumeThreshold
 The volume at which the radio filter kicks in
 
UReverbPluginSourceSettingsBase * ReverbPluginSettings
 The occlusion plugin settings to use for the wave instance.
 
FVector2D ReverbSendLevelDistanceRange
 Reverb distance-based wet-level distance/radial range.
 
FVector2D ReverbSendLevelRange
 Reverb distance-based wet-level amount range.
 
EReverbSendMethod ReverbSendMethod
 The reverb send method to use.
 
USoundClass * SoundClass
 Sound class
 
float SoundClassFilterFrequency
 The low pass filter frequency to use from sound class.
 
USoundSubmixBase * SoundSubmix
 Sound submix object to send audio to for mixing in audio mixer. 更多...
 
TArray< FSoundSubmixSendInfo > SoundSubmixSends
 Sound submix sends
 
USoundEffectSourcePresetChain * SourceEffectChain
 Sound effect chain
 
ESoundSpatializationAlgorithm SpatializationMethod
 Which spatialization method to use to spatialize 3d sounds.
 
USpatializationPluginSourceSettingsBase * SpatializationPluginSettings
 The occlusion plugin settings to use for the wave instance.
 
float StartTime
 An offset/seek time to play this wave instance.
 
float StereoBleed
 The amount of stereo sounds to bleed to the rear speakers
 
float StereoSpread
 Amount of spread for 3d multi-channel asset spatialization
 
TArray< FAttenuationSubmixSendSettings > SubmixSendSettings
 The submix send settings to use.
 
uint32 TypeHash
 Cached type hash
 
uint8 UserIndex
 User / Controller index that owns the sound
 
float VoiceCenterChannelVolume
 Voice center channel volume
 
USoundWave * WaveData
 Wave data
 
UPTRINT WaveInstanceHash
 Hash value for finding the wave instance based on the path through the cue to get to it
 

静态 Public 属性

static uint32 TypeHashCounter
 Static helper to create good unique type hashes
 

友元

FArchive & operator<< (FArchive &Ar, FWaveInstance *WaveInstance)
 Friend archive function used for serialization.
 

详细描述

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.

成员函数说明

◆ GetEnvelopeValue()

float FWaveInstance::GetEnvelopeValue ( ) 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.

◆ SetEnvelopeValue()

void FWaveInstance::SetEnvelopeValue ( const float  InEnvelopeValue)
inline

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.

类成员变量说明

◆ AttenuationHighpassFilterFrequency

float FWaveInstance::AttenuationHighpassFilterFrequency

The high pass filter frequency to use due to distance attenuation.

(using in audio mixer only)

◆ bOutputToBusOnly

uint32 FWaveInstance::bOutputToBusOnly

Whether or not to only output this wave instances audio to buses only.

Audio mixer only.

◆ ListenerToSoundDistanceForPanning

float FWaveInstance::ListenerToSoundDistanceForPanning

The distance from this wave instance to the closest listener.

(ignoring attenuation override)

◆ PlaybackTime

float FWaveInstance::PlaybackTime

The playback time of the wave instance.

Updated from active sound.

◆ SoundSubmix

USoundSubmixBase* FWaveInstance::SoundSubmix

Sound submix object to send audio to for mixing in audio mixer.



该结构体的文档由以下文件生成: