Ardour  8.12
ardour.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2008 Doug McLain <doug@nostar.net>
3  * Copyright (C) 2006-2011 David Robillard <d@drobilla.net>
4  * Copyright (C) 2006-2016 Tim Mayberry <mojofunk@gmail.com>
5  * Copyright (C) 2006-2019 Paul Davis <paul@linuxaudiosystems.com>
6  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
7  * Copyright (C) 2014-2016 Robin Gareus <robin@gareus.org>
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) any later version.
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 along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 #ifndef __ardour_ardour_h__
25 #define __ardour_ardour_h__
26 
27 #include <map>
28 #include <string>
29 #include <vector>
30 
31 #include <limits.h>
32 #include <signal.h>
33 
34 #include "pbd/signals.h"
35 
36 #include "pbd/error.h"
37 #include "pbd/failed_constructor.h"
38 #include "pbd/stateful.h"
39 
41 #include "ardour/types.h"
43 
44 namespace MIDI {
45  class MachineControl;
46  class Port;
47 }
48 
49 namespace ARDOUR {
50 
51  class AudioEngine;
52  class Session;
53 
54  extern LIBARDOUR_API PBD::Signal1<void,std::string> BootMessage;
55  extern LIBARDOUR_API PBD::Signal3<void,std::string,std::string,bool> PluginScanMessage;
56  extern LIBARDOUR_API PBD::Signal1<void,int> PluginScanTimeout;
57  extern LIBARDOUR_API PBD::Signal0<void> GUIIdle;
58  extern LIBARDOUR_API PBD::Signal3<bool,std::string,std::string,int> CopyConfigurationFiles;
59  extern LIBARDOUR_API std::map<std::string, bool> reserved_io_names;
60  extern LIBARDOUR_API float ui_scale_factor;
61 
71  LIBARDOUR_API bool init (bool try_optimization, const char* localedir, bool with_gui = false);
76 
78 
79  extern LIBARDOUR_API const char* const ardour_config_info;
80 
81  /* these only impact bundled installations */
85 
87  LIBARDOUR_API std::vector<SyncSource> get_available_sync_options();
88 
90 
91  /* the @p ui_handler will be called if there are old configuration
92  * files to be copied. It should (probably) ask the user about the
93  * action, and return true or false depending on whether or not the
94  * copy should take place.
95  */
97  LIBARDOUR_API int handle_old_configuration_files (boost::function<bool (std::string const&, std::string const&, int)> ui_handler);
98 
100 }
101 
102 #endif /* __ardour_ardour_h__ */
103 
#define LIBARDOUR_API
PBD::Signal1< void, std::string > BootMessage
bool init(bool try_optimization, const char *localedir, bool with_gui=false)
std::vector< SyncSource > get_available_sync_options()
bool no_auto_connect()
PBD::Signal3< void, std::string, std::string, bool > PluginScanMessage
PBD::PropertyChange bounds_change
void check_for_old_configuration_files()
PBD::Signal0< void > GUIIdle
void reset_performance_meters(Session *)
void set_global_ui_scale_factor(float s)
std::string translation_enable_path()
void setup_fpu()
PBD::Signal1< void, int > PluginScanTimeout
bool set_translations_enabled(bool)
PBD::Signal3< bool, std::string, std::string, int > CopyConfigurationFiles
void cleanup()
int handle_old_configuration_files(boost::function< bool(std::string const &, std::string const &, int)> ui_handler)
float ui_scale_factor
void init_post_engine(uint32_t)
bool translations_are_enabled()
void make_property_quarks()
const char *const ardour_config_info
std::map< std::string, bool > reserved_io_names
DebugBits AudioEngine
Definition: session.h:1413