Return silence from read_from_sources() if we try to read a channel that our source...
[ardour.git] / libs / midi++2 / midi++ / channel.h
index 370a5691569e5f62dac6a1ea006be57b031d5175..d00ce700c542997b183e7de2dfe3111902c552d3 100644 (file)
@@ -39,9 +39,9 @@ class Port;
 class Channel : public PBD::ScopedConnectionList {
 
   public:
-       Channel (byte channel_number, PortBase &);
+       Channel (byte channel_number, Port &);
 
-       PortBase &midi_port()           { return _port; }
+       Port &midi_port()           { return _port; }
        byte channel()                  { return _channel_number; }
        byte program()                  { return _program_number; }
        byte bank()                     { return _bank_number; }
@@ -111,11 +111,11 @@ class Channel : public PBD::ScopedConnectionList {
        }
 
   protected:
-       friend class PortBase;
+       friend class Port;
        void connect_signals ();
 
   private:
-       PortBase& _port;
+       Port& _port;
 
        /* Current channel values */
        byte               _channel_number;