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
10
struct
FActiveSound
;
11
12
namespace
Audio::Trace
13
{
14
namespace
Util
15
{
16
ENGINE_API
FString
GetSoundBaseAssetName
(
const
TObjectPtr<UClass>
SoundClass);
17
ENGINE_API
FString
GetOwnerActorLabel
(
const
FActiveSound
&
InActiveSound
);
18
ENGINE_API
FName
GetOwnerActorIconName
(
const
FActiveSound
&
InActiveSound
);
19
ENGINE_API
TObjectPtr<UObject>
GetSoundObjectPointer
(
const
FActiveSound
&
InActiveSound
);
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
26
ENGINE_API
void
SendActiveSoundEvent
(
const
FActiveSound
&
InActiveSound
,
const
FString&
Event
);
27
28
// Add an entry to the Audio Insights Event Log
29
ENGINE_API
void
SendEvent(
const
Audio::FDeviceId
AudioDeviceID
30
,
const
FString&
Event
31
,
const
uint32
AudioObjectID
=
INDEX_NONE
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
AudioDevice.h
AudioMixerTrace.h
CoreMinimal.h
INDEX_NONE
@ INDEX_NONE
Definition
CoreMiscDefines.h:150
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ELocalFileChunkType::Event
@ Event
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FName
Definition
NameTypes.h:617
Audio::Trace
Definition
AudioMixer.cpp:34
Audio::FDeviceId
uint32 FDeviceId
Definition
AudioDefines.h:66
FActiveSound
Definition
ActiveSound.h:283
TObjectPtr
Definition
ObjectPtr.h:488
Engine
Source
Runtime
Engine
Public
Audio
AudioTraceUtil.h
Generated by
1.9.8