Ardour  9.0-pre0-582-g084a23a80d
solo_mute_release.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2000-2019 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2012-2021 Robin Gareus <robin@gareus.org>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program 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 along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef _ardour_solo_mute_release_h_
21 #define _ardour_solo_mute_release_h_
22 
23 #ifdef WAF_BUILD
24 #include "libardour-config.h"
25 #endif
26 
28 #include "ardour/types.h"
29 
30 namespace ARDOUR {
31 
32 class Session;
33 
35 {
36 public:
37  SoloMuteRelease (bool was_active);
38 
39  void set_exclusive (bool exclusive = true);
40 
41  void set (std::shared_ptr<Stripable>);
42  void set (std::shared_ptr<StripableList const>);
43  void set (std::shared_ptr<StripableList const>, std::shared_ptr<StripableList const>);
44  void set (std::shared_ptr<std::list<std::string> >);
45 
46  void release (Session*, bool mute) const;
47 
48 private:
49  bool active;
50  bool exclusive;
51 
52  std::shared_ptr<StripableList const> routes_on;
53  std::shared_ptr<StripableList const> routes_off;
54 
55  std::shared_ptr<std::list<std::string> > port_monitors;
56 };
57 
58 } // namespace ARDOUR
59 #endif
void set(std::shared_ptr< std::list< std::string > >)
SoloMuteRelease(bool was_active)
std::shared_ptr< StripableList const > routes_on
void release(Session *, bool mute) const
void set(std::shared_ptr< StripableList const >, std::shared_ptr< StripableList const >)
void set_exclusive(bool exclusive=true)
void set(std::shared_ptr< Stripable >)
std::shared_ptr< StripableList const > routes_off
void set(std::shared_ptr< StripableList const >)
std::shared_ptr< std::list< std::string > > port_monitors
#define LIBARDOUR_API