diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-23 15:47:16 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:33 +0200 |
commit | 02655313e9726a044dcecdeb143c261614d00f0f (patch) | |
tree | d019ad3353e749dc17dd3bfac885cd3d97558d5f /src/audio/sampman.h | |
parent | Fix MAX_DIGITAL_MIXER_CHANNELS (diff) | |
download | re3-02655313e9726a044dcecdeb143c261614d00f0f.tar re3-02655313e9726a044dcecdeb143c261614d00f0f.tar.gz re3-02655313e9726a044dcecdeb143c261614d00f0f.tar.bz2 re3-02655313e9726a044dcecdeb143c261614d00f0f.tar.lz re3-02655313e9726a044dcecdeb143c261614d00f0f.tar.xz re3-02655313e9726a044dcecdeb143c261614d00f0f.tar.zst re3-02655313e9726a044dcecdeb143c261614d00f0f.zip |
Diffstat (limited to 'src/audio/sampman.h')
-rw-r--r-- | src/audio/sampman.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/audio/sampman.h b/src/audio/sampman.h index 7c60080d..d6fc5cc0 100644 --- a/src/audio/sampman.h +++ b/src/audio/sampman.h @@ -1,5 +1,6 @@ #pragma once #include "AudioSamples.h" +#include "audio_enums.h" #define MAX_VOLUME 127 #define MAX_FREQ DIGITALRATE @@ -115,10 +116,9 @@ enum #define MAXPROVIDERS 64 -#define MAXCHANNELS 28 -#define MAXCHANNELS_SURROUND 24 +#define MAXCHANNELS (NUM_CHANNELS_GENERIC+1) +#define MAXCHANNELS_SURROUND (MAXCHANNELS-4) #define MAX2DCHANNELS 1 -#define CHANNEL2D MAXCHANNELS #define MAX_STREAMS 3 @@ -126,7 +126,13 @@ enum #define DIGITALBITS 16 #define DIGITALCHANNELS 2 -#define MAX_DIGITAL_MIXER_CHANNELS 34 +#ifdef FIX_BUGS +#define MAX_DIGITAL_MIXER_CHANNELS (MAXCHANNELS+MAX_STREAMS*2+MAX2DCHANNELS) +#else +#define MAX_DIGITAL_MIXER_CHANNELS (MAXCHANNELS+MAX_STREAMS*2) +#endif + +static_assert( NUM_CHANNELS == MAXCHANNELS + MAX2DCHANNELS, "The number of channels doesn't match with an enum" ); class cSampleManager { |