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

Revision 436, 1.8 kB (checked in by pieterpalmers, 14 years ago)

- fixed verbose level setting
- debugged DICE code, works with EVM

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
28 #include "bebob/bebob_avdevice.h"
29
30 #include "libstreaming/AmdtpStreamProcessor.h"
31 #include "libstreaming/AmdtpPort.h"
32 #include "libstreaming/AmdtpPortInfo.h"
33
34 #include "iavdevice.h"
35
36 class ConfigRom;
37 class Ieee1394Service;
38
39 namespace MAudio {
40
41 struct VendorModelEntry {
42     unsigned int vendor_id;
43     unsigned int model_id;
44     char *vendor_name;
45     char *model_name;
46     char *filename;
47 };
48
49 class AvDevice : public BeBoB::AvDevice {
50 public:
51     AvDevice( std::auto_ptr<ConfigRom>( configRom ),
52               Ieee1394Service& ieee1394Service,
53               int nodeId );
54     virtual ~AvDevice();
55
56     static bool probe( ConfigRom& configRom );
57     bool discover();
58    
59     void showDevice();
60    
61     bool setSamplingFrequency( ESamplingFrequency samplingFrequency );
62     int getSamplingFrequency( );
63
64     bool prepare();
65
66 protected:
67     struct VendorModelEntry*  m_model;
68
69 };
70
71 }
72
73 #endif
Note: See TracBrowser for help on using the browser.