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.
| 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.
| OnSubmixEnvelopeBP | Event to fire when new envelope data is available. |
| 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.
| InBandsettings | The frequency bands to analyze and their envelope-following settings. |
| OnSubmixSpectralAnalysisBP | Event to fire when new spectral data is available. |
| UpdateRate | How often to retrieve the data from the spectral analyzer and broadcast the event. Max is 30 times per second. |
| InterpMethod | Method to used for band peak calculation. |
| SpectrumType | Metric to use when returning spectrum values. |
| DecibelNoiseFloor | Decibel Noise Floor to consider as silence silence when using a Decibel Spectrum Type. |
| bDoNormalize | If true, output band values will be normalized between zero and one. |
| bDoAutoRange | If 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. |
| AutoRangeAttackTime | The time (in seconds) it takes for the range to expand to 90% of a larger range. |
| AutoRangeReleaseTime | The time (in seconds) it takes for the range to shrink to 90% of a smaller range. |
|
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 .
| void USoundSubmix::RemoveSpectralAnalysisDelegate | ( | const UObject * | WorldContextObject, |
| const FOnSubmixSpectralAnalysisBP & | OnSubmixSpectralAnalysisBP | ||
| ) |
Remove a spectral analysis delegate.
| OnSubmixSpectralAnalysisBP | The event delegate to remove. |
| 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.
| 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.
| float USoundSubmix::DryLevel |
The dry level of the submix.
Applied before submix effects and analysis are performed.
| 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.
| 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.
| float USoundSubmix::OutputVolume |
The output volume of the submix.
Applied after submix effects and analysis are performed.
| float USoundSubmix::WetLevel |
The wet level of the submix.
Applied after submix effects and analysis are performed.