root/trunk/libffado/src/bebob/presonus/firebox_avdevice.h

Revision 2489, 1.6 kB (checked in by mocchi, 10 years ago)

BeBoB: add Firebox/Inspire1394 namespace under PreSonus? namespace

They need different class, especially Inspire1394 need its own command and control.
This commit adds each namespace to easy to understand them.

Line 
1 /*
2  * Copyright (C) 2013      by Takashi Sakamoto
3  * Copyright (C) 2005-2008 by Daniel Wagner
4  * Copyright (C) 2005-2008 by Pieter Palmers
5  *
6  * This file is part of FFADO
7  * FFADO = Free Firewire (pro-)audio drivers for linux
8  *
9  * FFADO is based upon FreeBoB.
10  *
11  * This program is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation, either version 2 of the License, or
14  * (at your option) version 3 of the License.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23  *
24  */
25
26 #ifndef BEBOB_PRESONUS_DEVICE_H
27 #define BEBOB_PRESONUS_DEVICE_H
28
29 #include "debugmodule/debugmodule.h"
30 #include "bebob/bebob_avdevice.h"
31
32 namespace BeBoB {
33 namespace Presonus {
34 namespace Firebox {
35
36 class Device : public BeBoB::Device {
37 public:
38         Device( DeviceManager& d, std::auto_ptr<ConfigRom>( configRom ));
39     virtual ~Device();
40
41     virtual void showDevice();
42
43     virtual ClockSourceVector getSupportedClockSources();
44     virtual bool setActiveClockSource(ClockSource);
45     virtual ClockSource getActiveClockSource();
46
47 private:
48     enum FFADODevice::eClockSourceType getClkSrc();
49     ClockSource m_intl_clksrc;
50     ClockSource m_spdif_clksrc;
51     ClockSource *m_active_clksrc;
52 };
53
54 } // namespace Firebox
55 } // namespace Presonus
56 } // namespace BeBoB
57
58 #endif
Note: See TracBrowser for help on using the browser.