root/branches/echoaudio/src/libstreaming/MotuPort.h

Revision 545, 2.5 kB (checked in by ppalmers, 15 years ago)

- Remove name parameter from PortInfo? since it's already in Port

Line 
1 /*
2  * Copyright (C) 2005-2007 by Jonathan Woithe
3  * Copyright (C) 2005-2007 by Pieter Palmers
4  *
5  * This file is part of FFADO
6  * FFADO = Free Firewire (pro-)audio drivers for linux
7  *
8  * FFADO is based upon FreeBoB.
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License version 2.1, as published by the Free Software Foundation;
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22  * MA 02110-1301 USA
23  */
24
25 #ifndef __FFADO_MOTUPORT__
26 #define __FFADO_MOTUPORT__
27
28 /**
29  * This file implements the ports used in Motu devices
30  */
31
32 #include "../debugmodule/debugmodule.h"
33 #include "Port.h"
34 #include "MotuPortInfo.h"
35
36 namespace Streaming {
37
38 /*!
39 \brief The Base Class for Motu Audio Port
40
41
42 */
43 class MotuAudioPort
44     : public AudioPort, public MotuPortInfo
45 {
46
47 public:
48
49     MotuAudioPort(std::string name,
50                        enum E_Direction direction,
51                    int position,
52                    int size)
53     : AudioPort(name, direction),
54       MotuPortInfo( position, size) // TODO: add more port information parameters here if nescessary
55     {};
56
57     virtual ~MotuAudioPort() {};
58
59 protected:
60
61 };
62
63 /*!
64 \brief The Base Class for an Motu Midi Port
65
66
67 */
68 class MotuMidiPort
69     : public MidiPort, public MotuPortInfo
70 {
71
72 public:
73
74     MotuMidiPort(std::string name,
75                        enum E_Direction direction,
76                    int position)
77         : MidiPort(name, direction),
78           MotuPortInfo(position, 0)  // TODO: add more port information parameters here if nescessary
79     {};
80
81
82     virtual ~MotuMidiPort() {};
83
84 protected:
85
86 };
87
88 /*!
89 \brief The Base Class for an Motu Control Port
90
91
92 */
93 class MotuControlPort
94     : public ControlPort, public MotuPortInfo
95 {
96
97 public:
98
99     MotuControlPort(std::string name,
100                        enum E_Direction direction,
101                    int position)
102         : ControlPort(name, direction),
103           MotuPortInfo(name, position, 2) // TODO: add more port information parameters here if nescessary
104     {};
105
106
107     virtual ~MotuControlPort() {};
108
109 protected:
110
111 };
112
113 } // end of namespace Streaming
114
115 #endif /* __FFADO_MOTUPORT__ */
116
Note: See TracBrowser for help on using the browser.