![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Audio.h"#include "Audio/SoundParameterControllerInterface.h"#include "Components/SceneComponent.h"#include "CoreMinimal.h"#include "Engine/EngineTypes.h"#include "IAudioParameterTransmitter.h"#include "Math/RandomStream.h"#include "Misc/TransactionallySafeCriticalSection.h"#include "Quartz/AudioMixerQuantizedCommands.h"#include "Sound/QuartzQuantizationUtilities.h"#include "Sound/QuartzSubscription.h"#include "Sound/SoundAttenuation.h"#include "Sound/SoundModulationDestination.h"#include "Sound/SoundSubmixSend.h"#include "Sound/SoundSourceBusSend.h"#include "UObject/ObjectMacros.h"#include "AudioComponent.generated.h"Go to the source code of this file.
Classes | |
| struct | UInitialActiveSoundParams |
Typedefs | |
| using | FSharedISourceBufferListenerPtr = TSharedPtr< ISourceBufferListener, ESPMode::ThreadSafe > |
Enumerations | |
| enum class | EAudioComponentPlayState : uint8 { Playing , Stopped , Paused , FadingIn , FadingOut , UMETA =(Hidden) } |
| enum class | EAudioFaderCurve : uint8 { Linear , Logarithmic , UMETA =(DisplayName = "Sin (S-Curve)") , UMETA =(DisplayName = "Sin (Equal Power)") , UMETA =(Hidden) } |
|
strong |
|
strong |
| DECLARE_DYNAMIC_DELEGATE_TwoParams | ( | FOnQueueSubtitles | , |
| const TArray< struct FSubtitleCue > & | , | ||
| Subtitles | , | ||
| float | , | ||
| CueDuration | |||
| ) |
Called when subtitles are sent to the SubtitleManager. Set this delegate if you want to hijack the subtitles for other purposes
| DECLARE_DYNAMIC_MULTICAST_DELEGATE | ( | FOnAudioFinished | ) |
called when we finish playing audio, either because it played to completion or because a Stop() call turned it off early
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAudioPlayStateChanged | , |
| EAudioComponentPlayState | , | ||
| PlayState | |||
| ) |
Called when sound's PlayState changes.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAudioVirtualizationChanged | , |
| bool | , | ||
| bIsVirtualized | |||
| ) |
Called when sound becomes virtualized or realized (resumes playback from virtualization).
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams | ( | FOnAudioMultiEnvelopeValue | , |
| const float | , | ||
| AverageEnvelopeValue | , | ||
| const float | , | ||
| MaxEnvelope | , | ||
| const int32 | , | ||
| NumWaveInstances | |||
| ) |
Called while a sound plays and returns the sound's average and max envelope value (using an envelope follower in the audio renderer per wave instance). This only works in the audio mixer.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams | ( | FOnAudioPlaybackPercent | , |
| const USoundWave * | , | ||
| PlayingSoundWave | , | ||
| const float | , | ||
| PlaybackPercent | |||
| ) |
Called as a sound plays on the audio component to allow BP to perform actions based on playback percentage. Computed as samples played divided by total samples, taking into account pitch. Not currently implemented on all platforms.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams | ( | FOnAudioSingleEnvelopeValue | , |
| const class USoundWave * | , | ||
| PlayingSoundWave | , | ||
| const float | , | ||
| EnvelopeValue | |||
| ) |
Called while a sound plays and returns the sound's envelope value (using an envelope follower in the audio renderer). This only works in the audio mixer.
| DECLARE_MULTICAST_DELEGATE_FourParams | ( | FOnAudioMultiEnvelopeValueNative | , |
| const UAudioComponent * | , | ||
| const float | , | ||
| const float | , | ||
| const int32 | |||
| ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_OneParam | ( | FOnAudioFinishedNative | , |
| UAudioComponent * | |||
| ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_ThreeParams | ( | FOnAudioPlaybackPercentNative | , |
| const UAudioComponent * | , | ||
| const USoundWave * | , | ||
| const float | |||
| ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_ThreeParams | ( | FOnAudioSingleEnvelopeValueNative | , |
| const UAudioComponent * | , | ||
| const USoundWave * | , | ||
| const float | |||
| ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAudioPlayStateChangedNative | , |
| const UAudioComponent * | , | ||
| EAudioComponentPlayState | |||
| ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAudioVirtualizationChangedNative | , |
| const UAudioComponent * | , | ||
| bool | |||
| ) |
shadow delegate declaration for above