18 #ifndef MT32EMU_GLOBALS_H 19 #define MT32EMU_GLOBALS_H 29 # if defined _WIN32 || defined __CYGWIN__ || defined __OS2__ 31 # ifdef mt32emu_EXPORTS 32 # define MT32EMU_EXPORT_ATTRIBUTE _declspec(dllexport) 34 # define MT32EMU_EXPORT_ATTRIBUTE _declspec(dllimport) 37 # ifdef mt32emu_EXPORTS 38 # define MT32EMU_EXPORT_ATTRIBUTE __attribute__ ((dllexport)) 40 # define MT32EMU_EXPORT_ATTRIBUTE __attribute__ ((dllimport)) 44 # ifdef mt32emu_EXPORTS 45 # define MT32EMU_EXPORT_ATTRIBUTE __attribute__ ((visibility("default"))) 47 # define MT32EMU_EXPORT_ATTRIBUTE 51 # define MT32EMU_EXPORT_ATTRIBUTE 54 #if MT32EMU_EXPORTS_TYPE == 1 || MT32EMU_EXPORTS_TYPE == 2 55 #define MT32EMU_EXPORT 57 #define MT32EMU_EXPORT MT32EMU_EXPORT_ATTRIBUTE 64 #define MT32EMU_EXPORT_V(symbol_version_tag) MT32EMU_EXPORT 69 #define MT32EMU_VERSION_INT(major, minor, patch) ((major << 16) | (minor << 8) | patch) 72 #define MT32EMU_CURRENT_VERSION_INT MT32EMU_VERSION_INT(MT32EMU_VERSION_MAJOR, MT32EMU_VERSION_MINOR, MT32EMU_VERSION_PATCH) 75 #define MT32EMU_VERSION_ATLEAST(major, minor, patch) (MT32EMU_CURRENT_VERSION_INT >= MT32EMU_VERSION_INT(major, minor, patch)) 85 #define MT32EMU_IS_COMPATIBLE(major, minor) (MT32EMU_VERSION_MAJOR == major && MT32EMU_VERSION_MINOR >= minor) 94 #define MT32EMU_SAMPLE_RATE 32000 97 #define MT32EMU_DEFAULT_MAX_PARTIALS 32 107 #define MT32EMU_MAX_SAMPLES_PER_RUN 4096 117 #define MT32EMU_DEFAULT_MIDI_EVENT_QUEUE_SIZE 1024 122 #define MT32EMU_MAX_STREAM_BUFFER_SIZE 32768 127 #define MT32EMU_SYSEX_BUFFER_SIZE 1000 129 #if defined(__cplusplus) && MT32EMU_API_TYPE != 1 133 const unsigned int SAMPLE_RATE = MT32EMU_SAMPLE_RATE;
134 #undef MT32EMU_SAMPLE_RATE 136 const unsigned int DEFAULT_MAX_PARTIALS = MT32EMU_DEFAULT_MAX_PARTIALS;
137 #undef MT32EMU_DEFAULT_MAX_PARTIALS 139 const unsigned int MAX_SAMPLES_PER_RUN = MT32EMU_MAX_SAMPLES_PER_RUN;
140 #undef MT32EMU_MAX_SAMPLES_PER_RUN 142 const unsigned int DEFAULT_MIDI_EVENT_QUEUE_SIZE = MT32EMU_DEFAULT_MIDI_EVENT_QUEUE_SIZE;
143 #undef MT32EMU_DEFAULT_MIDI_EVENT_QUEUE_SIZE 145 const unsigned int MAX_STREAM_BUFFER_SIZE = MT32EMU_MAX_STREAM_BUFFER_SIZE;
146 #undef MT32EMU_MAX_STREAM_BUFFER_SIZE 148 const unsigned int SYSEX_BUFFER_SIZE = MT32EMU_SYSEX_BUFFER_SIZE;
149 #undef MT32EMU_SYSEX_BUFFER_SIZE