SCons: Add enum conversion warning

This commit is contained in:
Thaddeus Crews
2025-04-26 10:05:07 -05:00
parent e37c6261ea
commit dc9c34f0c6
14 changed files with 67 additions and 77 deletions

View File

@ -58,16 +58,14 @@ class AudioEffectChorus : public AudioEffect {
friend class AudioEffectChorusInstance;
public:
enum {
MAX_DELAY_MS = 50,
MAX_DEPTH_MS = 20,
MAX_WIDTH_MS = 50,
MAX_VOICES = 4,
CYCLES_FRAC = 16,
CYCLES_MASK = (1 << CYCLES_FRAC) - 1,
MAX_CHANNELS = 4,
MS_CUTOFF_MAX = 16000
};
static constexpr int32_t MAX_DELAY_MS = 50;
static constexpr int32_t MAX_DEPTH_MS = 20;
static constexpr int32_t MAX_WIDTH_MS = 50;
static constexpr int32_t MAX_VOICES = 4;
static constexpr int32_t CYCLES_FRAC = 16;
static constexpr int32_t CYCLES_MASK = (1 << CYCLES_FRAC) - 1;
static constexpr int32_t MAX_CHANNELS = 4;
static constexpr int32_t MS_CUTOFF_MAX = 16000;
private:
struct Voice {