when mingw is mingw64, it appears that we need to use __declspec() and not __attribut...
[ardour.git] / libs / evoral / evoral / midi_util.h
index da7051aefa5b827de37903f9fecaa5e7bd7688a2..5c72fb86c903918a6fdbc73508ac8ce65ed3961f 100644 (file)
 #ifndef EVORAL_MIDI_UTIL_H
 #define EVORAL_MIDI_UTIL_H
 
+#include <iostream>
+
 #include <stdint.h>
-#include <stdbool.h>
 #include <string>
 #include <sys/types.h>
 #include <assert.h>
+
+#include "evoral/visibility.h"
 #include "evoral/midi_events.h"
 
 namespace Evoral {
@@ -66,9 +69,11 @@ midi_event_size(uint8_t status)
                return 1;
 
        case MIDI_CMD_COMMON_SYSEX:
+               std::cerr << "event size called for sysex\n";
                return -1;
        }
 
+       std::cerr << "event size called for unknown status byte " << std::hex << (int) status << "\n";
        return -1;
 }
 
@@ -116,7 +121,7 @@ midi_event_is_valid(const uint8_t* buffer, size_t len)
        return true;
 }
 
-std::string midi_note_name (uint8_t noteval);
+LIBEVORAL_API std::string midi_note_name (uint8_t noteval);
 
 } // namespace Evoral