UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AudioTraceUtil.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "AudioDevice.h"
5#include "AudioMixerTrace.h"
6#include "CoreMinimal.h"
7
8#if UE_AUDIO_PROFILERTRACE_ENABLED
9
10struct FActiveSound;
11
12namespace Audio::Trace
13{
14 namespace Util
15 {
16 ENGINE_API FString GetSoundBaseAssetName(const TObjectPtr<UClass> SoundClass);
20 } // namespace Util
21
22 namespace EventLog
23 {
24 // Add an entry to the Audio Insights Event Log that related to an Active Sound
25 // Event may be customized to post custom event types to the Event Log
27
28 // Add an entry to the Audio Insights Event Log
29 ENGINE_API void SendEvent(const Audio::FDeviceId AudioDeviceID
30 , const FString& Event
32 , const FString& AssetPath = FString()
33 , const FString& ActorLabel = FString()
34 , const FString& ActorIconName = FString()
35 , const FString& SoundClassName = FString());
36
37 } // namespace EventLog
38
39} // namespace Audio::Trace
40
41#endif // #if UE_AUDIO_PROFILERTRACE_ENABLED
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition AudioMixer.cpp:34
uint32 FDeviceId
Definition AudioDefines.h:66
Definition ActiveSound.h:283
Definition ObjectPtr.h:488