root/branches/streaming-rework/src/libstreaming/MotuPort.h

Revision 404, 2.6 kB (checked in by pieterpalmers, 16 years ago)

- introduce support framework for DICE and Metric Halo
- change probe/discovery code to make adding devices easier
- made conditional compilation effectively work.

./configure now has the following switches:

--enable-bebob build BeBoB support (default=yes)
--enable-motu build Motu support (default=no)
--enable-dice build DICE support (default=no)
--enable-metric-halo build Metric Halo support (note: completely useless)

(default=no)

--enable-rme build RME support (note: completely useless)

(default=no)

--enable-bounce build Bounce device support (default=no)
--enable-all-devices build support for all supported devices (default=no)

these now turn on/off compilation effectively.

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