Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Sound > API/Runtime/Engine/Sound/USoundSubmix
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Sound/SoundSubmix.h |
| Include | #include "Sound/SoundSubmix.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SoundSubmix.cpp |
void AddSpectralAnalysisDelegate
&40;
const UObject &42; WorldContextObject,
const TArray< FSoundSubmixSpectralAnalysisBandSettings > & InBandSettings,
const FOnSubmixSpectralAnalysisBP & OnSubmixSpectralAnalysisBP,
float UpdateRate,
float DecibelNoiseFloor,
bool bDoNormalize,
bool bDoAutoRange,
float AutoRangeAttackTime,
float AutoRangeReleaseTime
&41;
Remarks
Adds a spectral analysis delegate to receive notifications when this submix has spectrum analysis enabled.
Parameters
| Name | Description |
|---|---|
| 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 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. |