212 |
} |
} |
213 |
|
|
214 |
String MidiInputDeviceAlsa::Version() { |
String MidiInputDeviceAlsa::Version() { |
215 |
String s = "$Revision: 1.17 $"; |
String s = "$Revision: 1.18 $"; |
216 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
217 |
} |
} |
218 |
|
|
233 |
|
|
234 |
switch (ev->type) { |
switch (ev->type) { |
235 |
case SND_SEQ_EVENT_CONTROLLER: |
case SND_SEQ_EVENT_CONTROLLER: |
236 |
pMidiInputPort->DispatchControlChange(ev->data.control.param, ev->data.control.value, ev->data.control.channel); |
if (ev->data.control.param == 0) |
237 |
|
pMidiInputPort->DispatchBankSelectMsb(ev->data.control.value, ev->data.control.channel); |
238 |
|
else if (ev->data.control.param == 32) |
239 |
|
pMidiInputPort->DispatchBankSelectLsb(ev->data.control.value, ev->data.control.channel); |
240 |
|
else |
241 |
|
pMidiInputPort->DispatchControlChange(ev->data.control.param, ev->data.control.value, ev->data.control.channel); |
242 |
break; |
break; |
243 |
|
|
244 |
case SND_SEQ_EVENT_CHANPRESS: |
case SND_SEQ_EVENT_CHANPRESS: |