UAudioComponent::GetCookedEnvelopeDataForAllPlayingSounds

Retrieves the current-time amplitude envelope data of the sounds playing on the audio component.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h

Include

#include "Components/AudioComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/AudioComponent.cpp

Syntax

bool GetCookedEnvelopeDataForAllPlayingSounds
(
    TArray< FSoundWaveEnvelopeDataPerSound > & OutEnvelopeData
)

Remarks

Retrieves the current-time amplitude envelope data of the sounds playing on the audio component. Envelope data is not averaged or interpolated. Instead an array of data with all playing sound waves with cooked data is returned. Returns true if there is data and the audio component is playing.