Module |
|
Header |
/Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/LoudnessAnalyzer.h |
Include |
#include "LoudnessAnalyzer.h" |
Source |
/Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Private/LoudnessAnalyzer.cpp |
float CalculateLoudness
(
TArrayView< const float > InSampleView,
const int32 InNumChannels,
TArray< float > & OutChannelLoudness
)
Calculate loudness
InSampleView InSampleView is expected to contain interleaved audio with (InSettings.FFTSize * InNumChannels) number of samples.
InNumChannels Number of input channels.
OutChannelLoudness Will be populated with energies on a per channel basis.
The overall loudness is returned.