engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
USoundSubmix类 参考

Sound Submix class meant for applying an effect to the downmixed sum of multiple audio sources. 更多...

#include <SoundSubmix.h>

+ 类 USoundSubmix 继承关系图:

Public 成员函数

void AddEnvelopeFollowerDelegate (const UObject *WorldContextObject, const FOnSubmixEnvelopeBP &OnSubmixEnvelopeBP)
 Adds an envelope follower delegate to the submix when envelope following is enabled on this submix. 更多...
 
void AddSpectralAnalysisDelegate (const UObject *WorldContextObject, const TArray< FSoundSubmixSpectralAnalysisBandSettings > &InBandSettings, const FOnSubmixSpectralAnalysisBP &OnSubmixSpectralAnalysisBP, float UpdateRate=10.f, float DecibelNoiseFloor=-40.f, bool bDoNormalize=true, bool bDoAutoRange=false, float AutoRangeAttackTime=0.1f, float AutoRangeReleaseTime=60.f)
 Adds a spectral analysis delegate to receive notifications when this submix has spectrum analysis enabled. 更多...
 
void RemoveSpectralAnalysisDelegate (const UObject *WorldContextObject, const FOnSubmixSpectralAnalysisBP &OnSubmixSpectralAnalysisBP)
 Remove a spectral analysis delegate. 更多...
 
void SetSubmixOutputVolume (const UObject *WorldContextObject, float InOutputVolume)
 Sets the output volume of the submix. 更多...
 
void StartSpectralAnalysis (const UObject *WorldContextObject, EFFTSize FFTSize=EFFTSize::DefaultSize, EFFTPeakInterpolationMethod InterpolationMethod=EFFTPeakInterpolationMethod::Linear, EFFTWindowType WindowType=EFFTWindowType::Hann, float HopSize=0, EAudioSpectrumType SpectrumType=EAudioSpectrumType::MagnitudeSpectrum)
 Start spectrum analysis of the audio output.
 
void StopSpectralAnalysis (const UObject *WorldContextObject)
 Start spectrum analysis of the audio output.
 
- Public 成员函数 继承自 USoundSubmixWithParentBase
void SetParentSubmix (USoundSubmixBase *InParentSubmix)
 Set the parent submix of this SoundSubmix, removing it as a child from its previous owner 更多...
 

Public 属性

USoundfieldEncodingSettingsBase * AmbisonicsPluginSettings
 Optional settings used by plugins which support ambisonics file playback.
 
uint8 bMuteWhenBackgrounded: 1
 Mute this submix when the application is muted or in the background. 更多...
 
float DryLevel
 The dry level of the submix. 更多...
 
int32 EnvelopeFollowerAttackTime
 The attack time in milliseconds for the envelope follower. 更多...
 
int32 EnvelopeFollowerReleaseTime
 The release time in milliseconds for the envelope follower. 更多...
 
EGainParamMode GainMode
 Whether to treat submix gain levels as linear or decibel values.
 
float OutputVolume
 The output volume of the submix. 更多...
 
float WetLevel
 The wet level of the submix. 更多...
 

Protected 成员函数

virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 

详细描述

Sound Submix class meant for applying an effect to the downmixed sum of multiple audio sources.

成员函数说明

◆ AddEnvelopeFollowerDelegate()

void USoundSubmix::AddEnvelopeFollowerDelegate ( const UObject *  WorldContextObject,
const FOnSubmixEnvelopeBP &  OnSubmixEnvelopeBP 
)

Adds an envelope follower delegate to the submix when envelope following is enabled on this submix.

参数
OnSubmixEnvelopeBPEvent to fire when new envelope data is available.

◆ AddSpectralAnalysisDelegate()

void USoundSubmix::AddSpectralAnalysisDelegate ( const UObject *  WorldContextObject,
const TArray< FSoundSubmixSpectralAnalysisBandSettings > &  InBandSettings,
const FOnSubmixSpectralAnalysisBP &  OnSubmixSpectralAnalysisBP,
float  UpdateRate = 10.f,
float  DecibelNoiseFloor = -40.f,
bool  bDoNormalize = true,
bool  bDoAutoRange = false,
float  AutoRangeAttackTime = 0.1f,
float  AutoRangeReleaseTime = 60.f 
)

Adds a spectral analysis delegate to receive notifications when this submix has spectrum analysis enabled.

参数
InBandsettingsThe frequency bands to analyze and their envelope-following settings.
OnSubmixSpectralAnalysisBPEvent to fire when new spectral data is available.
UpdateRateHow often to retrieve the data from the spectral analyzer and broadcast the event. Max is 30 times per second.
InterpMethodMethod to used for band peak calculation.
SpectrumTypeMetric to use when returning spectrum values.
DecibelNoiseFloorDecibel Noise Floor to consider as silence silence when using a Decibel Spectrum Type.
bDoNormalizeIf true, output band values will be normalized between zero and one.
bDoAutoRangeIf true, output band values will have their ranges automatically adjusted to the minimum and maximum values in the audio. Output band values will be normalized between zero and one.
AutoRangeAttackTimeThe time (in seconds) it takes for the range to expand to 90% of a larger range.
AutoRangeReleaseTimeThe time (in seconds) it takes for the range to shrink to 90% of a smaller range.

◆ PostLoad()

virtual void USoundSubmix::PostLoad ( )
overrideprotectedvirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UObject .

◆ RemoveSpectralAnalysisDelegate()

void USoundSubmix::RemoveSpectralAnalysisDelegate ( const UObject *  WorldContextObject,
const FOnSubmixSpectralAnalysisBP &  OnSubmixSpectralAnalysisBP 
)

Remove a spectral analysis delegate.

参数
OnSubmixSpectralAnalysisBPThe event delegate to remove.

◆ SetSubmixOutputVolume()

void USoundSubmix::SetSubmixOutputVolume ( const UObject *  WorldContextObject,
float  InOutputVolume 
)

Sets the output volume of the submix.

This dynamic volume scales with the OutputVolume property of this submix.

类成员变量说明

◆ bMuteWhenBackgrounded

uint8 USoundSubmix::bMuteWhenBackgrounded

Mute this submix when the application is muted or in the background.

Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted.

◆ DryLevel

float USoundSubmix::DryLevel

The dry level of the submix.

Applied before submix effects and analysis are performed.

◆ EnvelopeFollowerAttackTime

int32 USoundSubmix::EnvelopeFollowerAttackTime

The attack time in milliseconds for the envelope follower.

Delegate callbacks can be registered to get the envelope value of sounds played with this submix.

◆ EnvelopeFollowerReleaseTime

int32 USoundSubmix::EnvelopeFollowerReleaseTime

The release time in milliseconds for the envelope follower.

Delegate callbacks can be registered to get the envelope value of sounds played with this submix.

◆ OutputVolume

float USoundSubmix::OutputVolume

The output volume of the submix.

Applied after submix effects and analysis are performed.

◆ WetLevel

float USoundSubmix::WetLevel

The wet level of the submix.

Applied after submix effects and analysis are performed.


该类的文档由以下文件生成: