root/branches/streaming-rework/src/maudio/maudio_avdevice.h

Revision 420, 2.0 kB (checked in by pieterpalmers, 17 years ago)

moved src/libfreebobavc to src/libavc

Line 
1 /* maudioe_avdevice.h
2  * Copyright (C) 2006 by Daniel Wagner
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 MAUDIODEVICE_H
22 #define MAUDIODEVICE_H
23
24 #include "debugmodule/debugmodule.h"
25 #include "libavc/avc_definitions.h"
26 #include "libavc/avc_extended_cmd_generic.h"
27 #include "libfreebob/xmlparser.h"
28
29 #include "bebob/bebob_avdevice.h"
30
31 #include "libstreaming/AmdtpStreamProcessor.h"
32 #include "libstreaming/AmdtpPort.h"
33 #include "libstreaming/AmdtpPortInfo.h"
34
35 #include "iavdevice.h"
36
37 class ConfigRom;
38 class Ieee1394Service;
39
40 namespace MAudio {
41
42 struct VendorModelEntry {
43     unsigned int vendor_id;
44     unsigned int model_id;
45     char *vendor_name;
46     char *model_name;
47     char *filename;
48 };
49
50 class AvDevice : public BeBoB::AvDevice {
51 public:
52     AvDevice( std::auto_ptr<ConfigRom>( configRom ),
53               Ieee1394Service& ieee1394Service,
54               int nodeId,
55               int verboseLevel );
56     virtual ~AvDevice();
57
58     static bool probe( ConfigRom& configRom );
59     bool discover();
60    
61     bool addXmlDescription( xmlNodePtr pDeviceNode );
62     void showDevice() const;
63    
64     bool setSamplingFrequency( ESamplingFrequency samplingFrequency );
65     int getSamplingFrequency( );
66
67     bool prepare();
68
69 protected:
70     struct VendorModelEntry*  m_model;
71    
72     DECLARE_DEBUG_MODULE;
73 };
74
75 }
76
77 #endif
Note: See TracBrowser for help on using the browser.