comparison data/midi/MIDIInput.cpp @ 565:3086876472dc

* rtmidi & activity updates
author Chris Cannam
date Tue, 24 Feb 2009 17:25:55 +0000
parents ecce042cc374
children e2281de2361c
comparison
equal deleted inserted replaced
564:ecef2f1bec18 565:3086876472dc
22 m_buffer(1023) 22 m_buffer(1023)
23 { 23 {
24 try { 24 try {
25 m_rtmidi = new RtMidiIn(name.toStdString()); 25 m_rtmidi = new RtMidiIn(name.toStdString());
26 m_rtmidi->setCallback(staticCallback, this); 26 m_rtmidi->setCallback(staticCallback, this);
27 m_rtmidi->openPort(); 27 m_rtmidi->openPort(0, tr("Input").toStdString());
28 } catch (RtError e) { 28 } catch (RtError e) {
29 e.printMessage(); 29 e.printMessage();
30 delete m_rtmidi; 30 delete m_rtmidi;
31 m_rtmidi = 0; 31 m_rtmidi = 0;
32 } 32 }