Return silence from read_from_sources() if we try to read a channel that our source...
[ardour.git] / libs / midi++2 / jack_midi_port.cc
index 729fc789d470847ab918e708d9c0d7a4f44c727b..9d7fb8c70ee5051476dccc2e78b7300f459593b1 100644 (file)
@@ -40,6 +40,10 @@ using namespace MIDI;
 using namespace std;
 using namespace PBD;
 
+namespace Evoral {
+template class EventRingBuffer<timestamp_t>;
+}
+
 pthread_t JackMIDIPort::_process_thread;
 Signal0<void> JackMIDIPort::JackHalted;
 Signal0<void> JackMIDIPort::MakeConnections;
@@ -76,7 +80,7 @@ JackMIDIPort::JackMIDIPort (const XMLNode& node, jack_client_t* jack_client)
 }
 
 void
-JackMIDIPort::init (string const & name, Flags flags)
+JackMIDIPort::init (const string& /*name*/, Flags /*flags*/)
 {
        if (!create_port ()) {
                _ok = true;
@@ -206,7 +210,7 @@ JackMIDIPort::drain (int check_interval_usecs)
 }
 
 int
-JackMIDIPort::write(byte * msg, size_t msglen, timestamp_t timestamp)
+JackMIDIPort::write (const byte * msg, size_t msglen, timestamp_t timestamp)
 {
        int ret = 0;