1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

enums not #defines in ExportMP3.cpp

This commit is contained in:
Paul Licameli 2019-04-02 21:00:35 -04:00
parent bbaceba347
commit e485afa156

View File

@ -105,28 +105,32 @@
// ExportMP3Options // ExportMP3Options
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
#define CHANNEL_JOINT 0 enum MP3ChannelMode : unsigned {
#define CHANNEL_STEREO 1 CHANNEL_JOINT = 0,
#define CHANNEL_MONO 2 CHANNEL_STEREO = 1,
CHANNEL_MONO = 2,
};
#define QUALITY_0 0 enum : int {
#define QUALITY_1 1 QUALITY_0 = 0,
#define QUALITY_2 2 QUALITY_1 = 1,
#define QUALITY_3 3 QUALITY_2 = 2,
#define QUALITY_4 4 QUALITY_3 = 3,
#define QUALITY_5 5 QUALITY_4 = 4,
#define QUALITY_6 6 QUALITY_5 = 5,
#define QUALITY_7 7 QUALITY_6 = 6,
#define QUALITY_8 8 QUALITY_7 = 7,
#define QUALITY_9 9 QUALITY_8 = 8,
QUALITY_9 = 9,
#define ROUTINE_FAST 0 ROUTINE_FAST = 0,
#define ROUTINE_STANDARD 1 ROUTINE_STANDARD = 1,
#define PRESET_INSANE 0 PRESET_INSANE = 0,
#define PRESET_EXTREME 1 PRESET_EXTREME = 1,
#define PRESET_STANDARD 2 PRESET_STANDARD = 2,
#define PRESET_MEDIUM 3 PRESET_MEDIUM = 3,
};
// Note: The label field is what will be written to preferences and carries // Note: The label field is what will be written to preferences and carries
// no numerical significance. It is simply a means to look up a value // no numerical significance. It is simply a means to look up a value