Fix warnings.

This commit is contained in:
Francois Best 2016-04-24 18:27:16 +02:00
parent 79c01a27a4
commit 5b3e4ac097
1 changed files with 7 additions and 11 deletions

View File

@ -174,20 +174,16 @@ enum MidiControlChangeNumber
struct RPN struct RPN
{ {
#define MIDI_MAKE_RPN(msb, lsb) msb << 7 + lsb
enum RegisteredParameterNumbers enum RegisteredParameterNumbers
{ {
PitchBendSensitivity = MIDI_MAKE_RPN(0x00, 0x00), PitchBendSensitivity = 0x0000,
ChannelFineTuning = MIDI_MAKE_RPN(0x00, 0x01), ChannelFineTuning = 0x0001,
ChannelCoarseTuning = MIDI_MAKE_RPN(0x00, 0x02), ChannelCoarseTuning = 0x0002,
SelectTuningProgram = MIDI_MAKE_RPN(0x00, 0x03), SelectTuningProgram = 0x0003,
SelectTuningBank = MIDI_MAKE_RPN(0x00, 0x04), SelectTuningBank = 0x0004,
ModulationDepthRange = MIDI_MAKE_RPN(0x00, 0x05), ModulationDepthRange = 0x0005,
NullFunction = MIDI_MAKE_RPN(0x7f, 0x7f), NullFunction = (0x7f << 7) + 0x7f,
}; };
#undef MIDI_MAKE_RPN
}; };
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------