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 470ccd447cfab54be705134a24c695605abdb520..d00ce700c542997b183e7de2dfe3111902c552d3 100644 (file)
@@ -41,7 +41,7 @@ class 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; }
@@ -112,11 +112,10 @@ class Channel : public PBD::ScopedConnectionList {
 
   protected:
        friend class Port;
-       void connect_input_signals ();
-       void connect_output_signals ();
+       void connect_signals ();
 
   private:
-       Port & _port;
+       Port& _port;
 
        /* Current channel values */
        byte               _channel_number;
@@ -142,7 +141,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 *);