root/trunk/libffado/src/bebob/GenericMixer.h

Revision 455, 1.8 kB (checked in by ppalmers, 15 years ago)

- test-mixer volume control works (tested on phase88 only)
- volume control is exposed to the outside

Line 
1 /*
2  * Copyright (C) 2007 by Pieter Palmers
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
22  */
23
24 #ifndef __FFAD0_GENERICMIXER__
25 #define __FFAD0_GENERICMIXER__
26
27 #include "src/debugmodule/debugmodule.h"
28
29 #include "libosc/OscNode.h"
30
31 #include "libieee1394/ieee1394service.h"
32 #include "libieee1394/configrom.h"
33
34 namespace BeBoB {
35 class AvDevice;
36
37 class GenericMixer
38     : public OSC::OscNode {
39
40 public:
41
42     GenericMixer(
43         Ieee1394Service& ieee1394service,
44         AvDevice &d);
45     virtual ~GenericMixer();
46
47     virtual OSC::OscResponse processOscMessage(OSC::OscMessage *m);
48
49 protected:
50     OSC::OscMessage mixerListChildren();
51     OSC::OscResponse mixerGetSelectorValue(int id);
52     OSC::OscResponse mixerSetSelectorValue(int id, int value);
53    
54     OSC::OscResponse mixerSetFeatureVolumeValue(int id, int channel, int volume);
55     OSC::OscResponse mixerGetFeatureVolumeValue(int fb_id, int channel);
56    
57 protected:
58     Ieee1394Service      &m_p1394Service;
59     AvDevice             &m_device;
60
61 protected:
62     DECLARE_DEBUG_MODULE;
63
64 };
65
66 } // end of namespace BeBoB
67
68 #endif /* __FFAD0_GENERICMIXER__ */
69
70
Note: See TracBrowser for help on using the browser.