1 |
/* |
---|
2 |
* Copyright (C) 2005-2008 by Pieter Palmers |
---|
3 |
* |
---|
4 |
* This file is part of FFADO |
---|
5 |
* FFADO = Free Firewire (pro-)audio drivers for linux |
---|
6 |
* |
---|
7 |
* FFADO is based upon FreeBoB. |
---|
8 |
* |
---|
9 |
* This program is free software: you can redistribute it and/or modify |
---|
10 |
* it under the terms of the GNU General Public License as published by |
---|
11 |
* the Free Software Foundation, either version 2 of the License, or |
---|
12 |
* (at your option) version 3 of the License. |
---|
13 |
* |
---|
14 |
* This program 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 |
---|
17 |
* GNU General Public License for more details. |
---|
18 |
* |
---|
19 |
* You should have received a copy of the GNU General Public License |
---|
20 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
21 |
* |
---|
22 |
*/ |
---|
23 |
|
---|
24 |
#ifndef __FFADO_AMDTPPORT__ |
---|
25 |
#define __FFADO_AMDTPPORT__ |
---|
26 |
|
---|
27 |
/** |
---|
28 |
* This file implements the AMDTP ports as used in the BeBoB's |
---|
29 |
*/ |
---|
30 |
|
---|
31 |
#include "debugmodule/debugmodule.h" |
---|
32 |
#include "../generic/Port.h" |
---|
33 |
#include "AmdtpPortInfo.h" |
---|
34 |
|
---|
35 |
namespace Streaming { |
---|
36 |
|
---|
37 |
/*! |
---|
38 |
\brief The Base Class for an AMDTP Audio Port |
---|
39 |
|
---|
40 |
The AMDTP/AM824/IEC61883-6 port that represents audio. |
---|
41 |
|
---|
42 |
*/ |
---|
43 |
class AmdtpAudioPort |
---|
44 |
: public AudioPort, public AmdtpPortInfo |
---|
45 |
{ |
---|
46 |
|
---|
47 |
public: |
---|
48 |
|
---|
49 |
AmdtpAudioPort(PortManager &m, |
---|
50 |
std::string name, |
---|
51 |
enum E_Direction direction, |
---|
52 |
int position, |
---|
53 |
int location, |
---|
54 |
enum E_Formats format) |
---|
55 |
: AudioPort(m, name, direction), |
---|
56 |
AmdtpPortInfo(position, location, format) |
---|
57 |
{}; |
---|
58 |
|
---|
59 |
virtual ~AmdtpAudioPort() {}; |
---|
60 |
}; |
---|
61 |
|
---|
62 |
/*! |
---|
63 |
\brief The Base Class for an AMDTP Midi Port |
---|
64 |
|
---|
65 |
The AMDTP/AM824/IEC61883-6 port that represents midi. |
---|
66 |
|
---|
67 |
*/ |
---|
68 |
class AmdtpMidiPort |
---|
69 |
: public MidiPort, public AmdtpPortInfo |
---|
70 |
{ |
---|
71 |
|
---|
72 |
public: |
---|
73 |
|
---|
74 |
AmdtpMidiPort(PortManager &m, |
---|
75 |
std::string name, |
---|
76 |
enum E_Direction direction, |
---|
77 |
int position, |
---|
78 |
int location, |
---|
79 |
enum E_Formats format) |
---|
80 |
: MidiPort(m, name, direction), |
---|
81 |
AmdtpPortInfo(position, location, format) |
---|
82 |
{}; |
---|
83 |
|
---|
84 |
virtual ~AmdtpMidiPort() {}; |
---|
85 |
}; |
---|
86 |
|
---|
87 |
} // end of namespace Streaming |
---|
88 |
|
---|
89 |
#endif /* __FFADO_AMDTPPORT__ */ |
---|