root/trunk/libfreebob/src/maudio/maudio_avdevice.h

Revision 298, 1.9 kB (checked in by wagi, 18 years ago)

2006-08-27 Daniel Wagner <wagi@monom.org>

  • configure.ac: Version set to 1.4.0
  • maudio device support infrastructure added. Implements
    IAvDevice interface, discover reads the information from
    an xml file.
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 "iavdevice.h"
25
26 #include "debugmodule/debugmodule.h"
27 #include "libfreebobavc/avc_definitions.h"
28 #include "libfreebobavc/avc_extended_cmd_generic.h"
29 #include "libfreebob/xmlparser.h"
30
31 class ConfigRom;
32 class Ieee1394Service;
33
34 namespace MAudio {
35
36 class AvDevice : public IAvDevice {
37 public:
38     AvDevice( std::auto_ptr<ConfigRom>( configRom ),
39               Ieee1394Service& ieee1394Service,
40               int nodeId,
41               int verboseLevel );
42     virtual ~AvDevice();
43
44     static bool probe( ConfigRom& configRom );
45     virtual bool discover();
46     virtual ConfigRom& getConfigRom() const;
47     virtual bool addXmlDescription( xmlNodePtr pDeviceNode );
48     virtual bool setSamplingFrequency( ESamplingFrequency eSamplingFrequency );
49     virtual void showDevice() const;
50     virtual bool setId(unsigned int iId);
51
52 protected:
53     std::auto_ptr<ConfigRom>( m_pConfigRom );
54     Ieee1394Service* m_p1394Service;
55     int              m_iNodeId;
56     int              m_iVerboseLevel;
57     const char*      m_pFilename;
58
59     DECLARE_DEBUG_MODULE;
60 };
61
62 }
63
64 #endif
Note: See TracBrowser for help on using the browser.