UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AudioDefines.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "HAL/Platform.h"
5
6
10#define MAX_AUDIOCHANNELS 64
11
12
16#define INDEFINITELY_LOOPING_DURATION 10000.0f
17
18
22#define SPEAKER_COUNT 6
23
24#define DEFAULT_LOW_FREQUENCY 600.0f
25#define DEFAULT_MID_FREQUENCY 1000.0f
26#define DEFAULT_HIGH_FREQUENCY 2000.0f
27
28#define MAX_VOLUME 4.0f
29#define MIN_PITCH 0.4f
30#define MAX_PITCH 2.0f
31
32#define MIN_VOLUME_LINEAR SMALL_NUMBER
33#define MIN_VOLUME_DECIBELS -160.f
34
35#define MIN_SOUND_PRIORITY 0.0f
36#define MAX_SOUND_PRIORITY 100.0f
37
38#define DEFAULT_SUBTITLE_PRIORITY 10000.0f
39
40
44#define MIN_FILTER_GAIN 0.126f
45#define MAX_FILTER_GAIN 7.94f
46
47#define MIN_FILTER_FREQUENCY 20.0f
48#define MAX_FILTER_FREQUENCY 20000.0f
49
50#define MIN_FILTER_BANDWIDTH 0.1f
51#define MAX_FILTER_BANDWIDTH 2.0f
52
53
57#define ENABLE_AUDIO_DEBUG !UE_BUILD_SHIPPING
58
59
61namespace Audio
62{
67
68
69 // Magic numbers for mono upmix method
70 inline constexpr float MonoUpmixFullVolume = 1.0f;
71 inline constexpr float MonoUpmixEqualPower = 0.707f;
72 inline constexpr float MonoUpmixLinear = 0.5f;
73
74}
uint32_t uint32
Definition binka_ue_file_header.h:6
NO_LOGGING.
Definition AudioMixerPlatformAndroid.cpp:53
constexpr float MonoUpmixLinear
Definition AudioDefines.h:72
constexpr float MonoUpmixEqualPower
Definition AudioDefines.h:71
uint32 FDeviceId
Definition AudioDefines.h:66
constexpr float MonoUpmixFullVolume
Definition AudioDefines.h:70