SCons: Add enum conversion warning
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user