Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge...
[ardour.git] / libs / midi++2 / midi++ / channel.h
index 7afaffb27494a4dd0f803f76748cb63e93320f58..02c16e67297cf2f2198a3b8fea06121689264379 100644 (file)
@@ -23,8 +23,6 @@
 #include <queue>
 
 #include "pbd/signals.h"
-
-#include "midi++/types.h"
 #include "midi++/parser.h"
 
 namespace MIDI {
@@ -36,12 +34,12 @@ class Port;
  * This remembers various useful information about the current 'state' of a
  * MIDI channel (eg current pitch bend value).
  */
-class Channel : public PBD::ScopedConnectionList {
+class LIBMIDIPP_API Channel : public PBD::ScopedConnectionList {
 
   public:
        Channel (byte channel_number, Port &);
 
-       Port &midi_port()               { return _port; }
+       Port &midi_port()           { return _port; }
        byte channel()                  { return _channel_number; }
        byte program()                  { return _program_number; }
        byte bank()                     { return _bank_number; }
@@ -115,7 +113,7 @@ class Channel : public PBD::ScopedConnectionList {
        void connect_signals ();
 
   private:
-       Port & _port;
+       Port& _port;
 
        /* Current channel values */
        byte               _channel_number;
@@ -141,7 +139,7 @@ class Channel : public PBD::ScopedConnectionList {
        bool               _mono;
        size_t             _notes_on;
 
-       void reset (timestamp_t timestamp, nframes_t nframes, bool notes_off = true);
+       void reset (timestamp_t timestamp, framecnt_t nframes, bool notes_off = true);
        
        void process_note_off (Parser &, EventTwoBytes *);
        void process_note_on (Parser &, EventTwoBytes *);