root/branches/streaming-rework/src/metrichalo/mh_avdevice.h

Revision 435, 1.9 kB (checked in by pieterpalmers, 15 years ago)

src/devicemanager:
- start OSC server for the device manager

src/devicemanager,
src/iavdevice,
src/libieee1394/configrom:
- inherit from OscNode? to become Osc'able

src/bounce,
src/libstreaming/AmdtpStreamProcessor,
src/libstreaming/AmdtpSlaveStreamProcessor:
- fixed bounce device implementation, now working

src/bebob:
- fixed midi bug

General:
- removed 'intermediate XML'
- removed obsolete tests
- removed obsolete files
- removed obsolete API calls

Line 
1 /* mh_avdevice.h
2  * Copyright (C) 2007 by Pieter Palmers
3  *
4  * This file is part of FreeBob.
5  *
6  * FreeBob is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * FreeBob is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FreeBob; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA.
19  */
20
21 #ifndef MHDEVICE_H
22 #define MHDEVICE_H
23
24 #include "iavdevice.h"
25
26 #include "debugmodule/debugmodule.h"
27 #include "libavc/avc_definitions.h"
28
29 // #include "libstreaming/MHStreamProcessor.h"
30
31 class ConfigRom;
32 class Ieee1394Service;
33
34 namespace MetricHalo {
35
36 // struct to define the supported devices
37 struct VendorModelEntry {
38     unsigned int vendor_id;
39     unsigned int model_id;
40     char *vendor_name;
41     char *model_name;
42 };
43
44 class MHAvDevice : public IAvDevice {
45 public:
46     MHAvDevice( std::auto_ptr<ConfigRom>( configRom ),
47               Ieee1394Service& ieee1394Service,
48                   int nodeId );
49     virtual ~MHAvDevice();
50
51     static bool probe( ConfigRom& configRom );
52     bool discover();
53
54     void showDevice() const;
55
56     bool setSamplingFrequency( ESamplingFrequency samplingFrequency );
57     int getSamplingFrequency( );
58
59     int getStreamCount();
60     Streaming::StreamProcessor *getStreamProcessorByIndex(int i);
61
62     bool prepare();
63     bool lock();
64     bool unlock();
65
66     bool startStreamByIndex(int i);
67     bool stopStreamByIndex(int i);
68
69     signed int getIsoRecvChannel(void);
70     signed int getIsoSendChannel(void);
71  
72 protected:
73     struct VendorModelEntry *m_model;
74
75 };
76
77 }
78
79 #endif
Note: See TracBrowser for help on using the browser.