Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
25 
26 #include <map>
27 #include <string>
28 #include <vector>
29 
30 #include <limits.h>
31 #include <signal.h>
32 
33 #include "pbd/signals.h"
34 
35 #include "pbd/error.h"
36 #include "pbd/failed_constructor.h"
37 #include "pbd/stateful.h"
38 
40 #include "ardour/types.h"
42 
43 namespace MIDI {
44  class MachineControl;
45  class Port;
46 }
47 
48 namespace ARDOUR {
49 
50  class AudioEngine;
51  class Session;
52 
53  extern LIBARDOUR_API PBD::Signal<void(std::string)> BootMessage;
54  extern LIBARDOUR_API PBD::Signal<void(std::string,std::string,bool)> PluginScanMessage;
56  extern LIBARDOUR_API PBD::Signal<void()> GUIIdle;
57  extern LIBARDOUR_API PBD::Signal<bool(std::string,std::string,int)> CopyConfigurationFiles;
58  extern LIBARDOUR_API std::map<std::string, bool> reserved_io_names;
59  extern LIBARDOUR_API float ui_scale_factor;
60 
70  LIBARDOUR_API bool init (bool try_optimization, const char* localedir, bool with_gui = false);
75 
77 
78  extern LIBARDOUR_API const char* const ardour_config_info;
79 
80  /* these only impact bundled installations */
84 
86  LIBARDOUR_API std::vector<SyncSource> get_available_sync_options();
87 
89 
90  /* the @p ui_handler will be called if there are old configuration
91  * files to be copied. It should (probably) ask the user about the
92  * action, and return true or false depending on whether or not the
93  * copy should take place.
94  */
96  LIBARDOUR_API int handle_old_configuration_files (std::function<bool (std::string const&, std::string const&, int)> ui_handler);
97 
99 }
100 
101 
#define LIBARDOUR_API
PBD::Signal< void(std::string, std::string, bool)> PluginScanMessage
PBD::Signal< void(std::string)> BootMessage
bool init(bool try_optimization, const char *localedir, bool with_gui=false)
PBD::Signal< void()> GUIIdle
std::vector< SyncSource > get_available_sync_options()
bool no_auto_connect()
PBD::PropertyChange bounds_change
void check_for_old_configuration_files()
PBD::Signal< bool(std::string, std::string, int)> CopyConfigurationFiles
void reset_performance_meters(Session *)
void set_global_ui_scale_factor(float s)
std::string translation_enable_path()
void setup_fpu()
int handle_old_configuration_files(std::function< bool(std::string const &, std::string const &, int)> ui_handler)
PBD::Signal< void(int)> PluginScanTimeout
bool set_translations_enabled(bool)
void cleanup()
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:1349