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

Revision 415, 2.2 kB (checked in by pieterpalmers, 16 years ago)

ieee1394service:
- implemented 64bit compare-swap-lock operation (needed for DICE)
- small name change of (un)registerARMhandler to (un)registerARMHandler

iavdevice.h:
- made the stream start/stop functions return bool instead of int
- updated function documentation for consistency and to reflect changes

BeBoB avdevice:
- replaced the 2 fixed streamprocessor pointers with a 2 vectors of streamprocessors
- implemented the 'snoop mode' (cannot be activated yet)

libstreaming:
- removed unused 'type' attribute from AmdtpPortInfo? & children

mh_avdevice, motu_avdevice, rme_avdevice:
- replaced m_1394service with m_p1394service for consistence

maudio_avdevice.cpp:
- removed unused code

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 #ifndef __FREEBOB_AMDTPPORT__
29 #define __FREEBOB_AMDTPPORT__
30
31 /**
32  * This file implements the AMDTP ports as used in the BeBoB's
33  */
34
35 #include "../debugmodule/debugmodule.h"
36 #include "Port.h"
37 #include "AmdtpPortInfo.h"
38
39 namespace FreebobStreaming {
40
41 /*!
42 \brief The Base Class for an AMDTP Audio Port
43
44  The AMDTP/AM824/IEC61883-6 port that represents audio.
45  
46 */
47 class AmdtpAudioPort
48         : public AudioPort, public AmdtpPortInfo
49 {
50
51 public:
52
53         AmdtpAudioPort(std::string name,
54                            enum E_Direction direction,
55                            int position,
56                            int location,
57                            enum E_Formats format)
58         : AudioPort(name, direction),
59           AmdtpPortInfo(name, position, location, format)
60         {};
61
62         virtual ~AmdtpAudioPort() {};
63  
64 protected:
65
66 };
67
68 /*!
69 \brief The Base Class for an AMDTP Midi Port
70
71  The AMDTP/AM824/IEC61883-6 port that represents midi.
72  
73 */
74 class AmdtpMidiPort
75         : public MidiPort, public AmdtpPortInfo
76 {
77
78 public:
79
80         AmdtpMidiPort(std::string name,
81                            enum E_Direction direction,
82                            int position,
83                            int location,
84                            enum E_Formats format)
85                 : MidiPort(name, direction),
86                   AmdtpPortInfo(name, position, location, format)
87         {};
88
89
90         virtual ~AmdtpMidiPort() {};
91
92 protected:
93        
94 };
95
96 } // end of namespace FreebobStreaming
97
98 #endif /* __FREEBOB_AMDTPPORT__ */
Note: See TracBrowser for help on using the browser.