summaryrefslogtreecommitdiffstats
path: root/src/core/config.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-12 13:57:16 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-12 13:57:16 +0200
commit92c5cf1877484eb209379da252766d1e9e1c8950 (patch)
tree6ce87dead9991c4106ba23dc94284661906665df /src/core/config.h
parentWaypoint text fix (diff)
downloadre3-92c5cf1877484eb209379da252766d1e9e1c8950.tar
re3-92c5cf1877484eb209379da252766d1e9e1c8950.tar.gz
re3-92c5cf1877484eb209379da252766d1e9e1c8950.tar.bz2
re3-92c5cf1877484eb209379da252766d1e9e1c8950.tar.lz
re3-92c5cf1877484eb209379da252766d1e9e1c8950.tar.xz
re3-92c5cf1877484eb209379da252766d1e9e1c8950.tar.zst
re3-92c5cf1877484eb209379da252766d1e9e1c8950.zip
Diffstat (limited to 'src/core/config.h')
-rw-r--r--src/core/config.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/config.h b/src/core/config.h
index 73b77560..a29acc09 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -176,6 +176,7 @@ enum Config {
# define VU_COLLISION
# define PS2_MENU
#elif defined GTA_PC
+# define EXTERNAL_3D_SOUND
# define PC_PLAYER_CONTROLS // mouse player/cam mode
# define GTA_REPLAY
# define GTA_SCENE_EDIT
@@ -428,6 +429,8 @@ static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually
#define FREE_CAM // Rotating cam
// Audio
+#define EXTERNAL_3D_SOUND // use external engine to simulate 3d audio spatialization. OpenAL would not work without it (because it works in a 3d space
+ // originally and making it work in 2d only requires more resource). Will not work on PS2
#define RADIO_SCROLL_TO_PREV_STATION // Won't work without FIX_BUGS
#define AUDIO_CACHE // cache sound lengths to speed up the cold boot
#define PS2_AUDIO_CHANNELS // increases the maximum number of audio channels to PS2 value of 43 (PC has 28 originally)
@@ -469,4 +472,11 @@ static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually
#undef USE_CUTSCENE_SHADOW_FOR_PED
#endif
-#endif // VANILLA_DEFINES \ No newline at end of file
+#endif // VANILLA_DEFINES
+
+#if defined(AUDIO_OAL) && !defined(EXTERNAL_3D_SOUND)
+#error AUDIO_OAL cannot work without EXTERNAL_3D_SOUND
+#endif
+#if defined(GTA_PS2) && defined(EXTERNAL_3D_SOUND)
+#error EXTERNAL_3D_SOUND cannot work on PS2
+#endif