root/trunk/libffado/src/libcontrol/MatrixMixer.cpp

Revision 1742, 1.7 kB (checked in by arnonym, 11 years ago)

Extend the interface of the MatrixMixer?:

  • Have booleans indicating if names and/or connections are supported. These functions are pure virtual.
  • Allow names and connections to be read and written, the default implementations of these (not anymore pure) virtual functions do nothing and return false or nothing.
Line 
1 /*
2  * Copyright (C) 2005-2008 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 program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) version 3 of the License.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23
24 #include "MatrixMixer.h"
25
26 namespace Control {
27
28     std::string MatrixMixer::getRowName(const int) {
29         return "";
30     }
31     std::string MatrixMixer::getColName(const int) {
32         return "";
33     }
34     bool MatrixMixer::setRowName(const int, const std::string&) {
35         return false;
36     }
37     bool MatrixMixer::setColName(const int, const std::string&) {
38         return false;
39     }
40
41     std::vector<std::string> MatrixMixer::availableConnectionsForRow(const int) {
42         return std::vector<std::string>();
43     }
44     std::vector<std::string> MatrixMixer::availableConnectionsForCol(const int) {
45         return std::vector<std::string>();
46     }
47     bool MatrixMixer::connectRowTo(const int, const std::string&) {
48         return false;
49     }
50     bool MatrixMixer::connectColTo(const int, const std::string&) {
51         return false;
52     }
53
54 } // namespace Control
Note: See TracBrowser for help on using the browser.