Module |
|
Header |
/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Classes/SoundVisualizationStatics.h |
Include |
#include "SoundVisualizationStatics.h" |
Source |
/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Private/SoundVisualizationStatics.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="SoundVisualization")
static void GetAmplitude
(
USoundWave * SoundWave,
int32 Channel,
float StartTime,
float TimeLength,
int32 AmplitudeBuckets,
TArray< float > & OutAmplitudes
)
Gathers the amplitude of the wave data for a window of time for the SoundWave
OutAmplitudes - The resulting amplitudes
Parameter |
Description |
---|---|
SoundWave |
The wave to get samples from |
Channel |
The channel of the sound to get. Specify 0 to combine channels together |
StartTime |
The beginning of the window to get the amplitude from |
TimeLength |
The duration of the window to get the amplitude from |
AmplitudeBuckets |
How many samples to divide the data in to. The amplitude is averaged from the wave samples for each bucket |