2 Copyright (C) 2000 Paul Barton-Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include <midi++/port.h>
24 #include <midi++/port_request.h>
29 PortRequest::PortRequest (const string &xdev,
37 devname = strdup (xdev.c_str());
38 tagname = strdup (xtag.c_str());
40 if (xmode == "output" ||
46 } else if (xmode == "input" ||
52 } else if (xmode == "duplex" ||
61 if (xtype == "ALSA/RAW" ||
62 xtype == "alsa/raw") {
63 type = Port::ALSA_RawMidi;
64 } else if (xtype == "ALSA/SEQUENCER" ||
65 xtype == "alsa/sequencer") {
66 type = Port::ALSA_Sequencer;
67 } else if (xtype == "COREMIDI" ||
68 xtype == "coremidi") {
69 type = Port::CoreMidi_MidiPort;
70 } else if (xtype == "NULL" ||
73 } else if (xtype == "FIFO" ||