Skip to content

AudioComponent

Class in Engine · Engine.AudioComponent · native, editinlinenew

Object › Component › ActorComponent › AudioComponent

Subclasses: SplineAudioComponent

Using it from Lua
h7.find_all("AudioComponent")            -- live instances
h7.find_class("Engine.AudioComponent")   -- the class
h7.hook("Engine.AudioComponent.AdjustVolume", fn)

Structs

AudioComponentParam

FieldType
ParamNamename
FloatParamfloat
WaveParamSoundNodeWave

Properties

NameTypeNotes
AdjustVolumeStartTimefloat
AdjustVolumeStopTimefloat
AdjustVolumeTargetVolumefloat
bAllowSpatializationbool
bAlwaysPlaybooltransient
bApplyRadioFilterbooltransient
bAutoDestroybool
bAutoPlaybool
bCenterChannelOnlybooltransient
bEQFilterAppliedbooltransient
bFinishedbooltransient
bIgnoreForFlushingbooltransient
bIsMusicbooltransient
bIsUISoundbooltransient
bPreviewComponentbooltransient
bRadioFilterSelectedbooltransient
bReverbbooltransient
bShouldRemainActiveIfDroppedbool
bStopWhenOwnerDestroyedbool
bSuppressSubtitlesbooltransient
bUseOwnerLocationbool
bWasOccludedbool
bWasPlayingbooltransient
ComponentLocationvectorconst, native
CueFirstNodeSoundNodeconst, native
CurrAdjustVolumeTargetVolumefloat
CurrentHighFrequencyGainfloatconst, native
CurrentHighFrequencyGainMultiplierfloatconst, native
CurrentInteriorLPFfloatconst, native
CurrentInteriorVolumefloatconst, native
CurrentLocationvectorconst, native
CurrentNotifyBufferFinishedHookSoundNodeconst, native
CurrentNotifyOnLoopintconst, native
CurrentPitchfloatconst, native
CurrentPitchMultiplierfloatconst, native
CurrentRadioFilterVolumefloatconst, native
CurrentRadioFilterVolumeThresholdfloatconst, native
CurrentUseSpatializationintconst, native
CurrentVelocityvectorconst, native
CurrentVoiceCenterChannelVolumefloatconst, native
CurrentVolumefloatconst, native
CurrentVolumeMultiplierfloatconst, native
FadeInStartTimefloat
FadeInStopTimefloat
FadeInTargetVolumefloat
FadeOutStartTimefloat
FadeOutStopTimefloat
FadeOutTargetVolumefloat
HighFrequencyGainMultiplierfloat
InstanceParametersarray<AudioComponentParam>
LastInteriorSettingsInteriorSettingsconst, native
LastLocationvectorconst, transient
LastOcclusionCheckTimefloattransient
LastOwnerActorconst, transient
LastReverbVolumeIndexintconst, native
LastUpdateTimedoubleconst, native
LFEBleedfloattransient
Listenerpointerconst, native
Locationvectornative
OcclusionCheckIntervalfloat
OmniRadiusfloatconst, native
PitchMultiplierfloat
PlaybackTimefloatconst, native
PortalVolumePortalVolumeconst, native
PreviewSoundRadiusDrawSoundRadiusComponentconst
SoundCueSoundCue
SoundNodeDataarrayconst, native
SoundNodeOffsetMapMapconst, native
SoundNodeResetWaveMapmultimap_mirrorconst, native
SourceInteriorLPFfloatconst, native
SourceInteriorVolumefloatconst, native
StereoBleedfloattransient
SubtitlePriorityfloatnative
VolumeMultiplierfloat
WaveInstancesarrayconst, native

Functions

NameDeclaration
AdjustVolumefinal native function AdjustVolume(FLOAT AdjustVolumeDuration, FLOAT AdjustVolumeLevel)
FadeInfinal native function FadeIn(FLOAT FadeInDuration, FLOAT FadeVolumeLevel)
FadeOutfinal native function FadeOut(FLOAT FadeOutDuration, FLOAT FadeVolumeLevel)
IsFadingInfinal native function bool IsFadingIn()
IsFadingOutfinal native function bool IsFadingOut()
IsPlayingfinal native function bool IsPlaying()
OcclusionChangedevent OcclusionChanged(bool bNowOccluded)
OnAudioFinisheddelegate OnAudioFinished(AudioComponent AC)
OnQueueSubtitlesdelegate OnQueueSubtitles(array<SubtitleCue> Subtitles, float CueDuration)
Playfinal native function Play()
ResetToDefaultsfinal native function ResetToDefaults()
SetFloatParameterfinal native function SetFloatParameter(name InName, float InFloat)
SetWaveParameterfinal native function SetWaveParameter(name InName, SoundNodeWave InWave)
Stopfinal native function Stop()

Default values

bUseOwnerLocation=true
bAutoDestroy=false
bAutoPlay=false
bAllowSpatialization=true
VolumeMultiplier=1.0
PitchMultiplier=1.0
HighFrequencyGainMultiplier=1.0
FadeInStopTime=-1.0f
FadeOutStopTime=-1.0f
AdjustVolumeStopTime=-1.0f
FadeInTargetVolume=1.0f
FadeOutTargetVolume=1.0f
AdjustVolumeTargetVolume=1.0f
CurrAdjustVolumeTargetVolume=1.0f
LastLocation=(X=1.0,Y=2.0,Z=3.0)

Inherited

FromMembers
ActorComponent7 properties, 4 functions
Component2 properties, 0 functions
Object13 properties, 308 functions