diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-11 14:33:50 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-12 10:39:34 +0200 |
commit | ce78081a7f61fed79281fa252da6f29d9f1030dc (patch) | |
tree | d07c8d9eed074a2c41898eb9cd28ed8f960e1171 /src/core/config.h | |
parent | Add define to enable/disable external 3d audio simulation (diff) | |
download | re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.gz re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.bz2 re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.lz re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.xz re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.zst re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.zip |
Diffstat (limited to 'src/core/config.h')
-rw-r--r-- | src/core/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/config.h b/src/core/config.h index 21a8b738..782ad99f 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -166,6 +166,7 @@ enum Config { # define ANIM_COMPRESSION # 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 @@ -420,6 +421,8 @@ enum Config { #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 #define AUDIO_CACHE #define PS2_AUDIO_CHANNELS // increases the maximum number of audio channels to PS2 value of 44 (PC has 28 originally) @@ -466,3 +469,10 @@ enum Config { #endif #endif // VANILLA_DEFINES + +#if defined(AUDIO_OAL) && !defined(EXTERNAL_3D_SOUND) +static_assert(false, "AUDIO_OAL cannot work without EXTERNAL_3D_SOUND"); +#endif +#if defined(GTA_PS2) && defined(EXTERNAL_3D_SOUND) +static_assert(false, "EXTERNAL_3D_SOUND cannot work on PS2"); +#endif |