1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2008 Andreas Persson * |
* Copyright (C) 2008 - 2009 Andreas Persson * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
25 |
// *************** MidiInputPortPlugin *************** |
// *************** MidiInputPortPlugin *************** |
26 |
// * |
// * |
27 |
|
|
28 |
MidiInputDevicePlugin::MidiInputPortPlugin::MidiInputPortPlugin(MidiInputDevicePlugin* pDevice) : |
MidiInputDevicePlugin::MidiInputPortPlugin::MidiInputPortPlugin(MidiInputDevicePlugin* pDevice, |
29 |
MidiInputPort(pDevice, 0) { |
int portNumber) : |
30 |
|
MidiInputPort(pDevice, portNumber) { |
31 |
} |
} |
32 |
|
|
33 |
|
|
64 |
} |
} |
65 |
|
|
66 |
String MidiInputDevicePlugin::Version() { |
String MidiInputDevicePlugin::Version() { |
67 |
String s = "$Revision: 1.1 $"; |
String s = "$Revision: 1.2 $"; |
68 |
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 |
69 |
} |
} |
70 |
|
|
73 |
} |
} |
74 |
|
|
75 |
MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() { |
MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() { |
76 |
return new MidiInputPortPlugin(this); |
return new MidiInputPortPlugin(this, Ports.size()); |
77 |
|
} |
78 |
|
|
79 |
|
void MidiInputDevicePlugin::DeleteMidiPort(MidiInputPort* pPort) { |
80 |
|
delete (MidiInputPortPlugin*)pPort; |
81 |
} |
} |
82 |
} |
} |