ardour
ardour.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 1999-2009 Paul Davis
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18 */
19 
20 #ifndef __ardour_ardour_h__
21 #define __ardour_ardour_h__
22 
23 #include <map>
24 #include <string>
25 #include <vector>
26 
27 #include <limits.h>
28 #include <signal.h>
29 
30 #include "pbd/signals.h"
31 
32 #include "pbd/error.h"
33 #include "pbd/failed_constructor.h"
34 #include "pbd/locale_guard.h"
35 #include "pbd/stateful.h"
36 
38 #include "ardour/types.h"
40 
41 namespace MIDI {
42  class MachineControl;
43  class Port;
44 }
45 
46 namespace ARDOUR {
47 
48  class AudioEngine;
49 
50  extern LIBARDOUR_API PBD::Signal1<void,std::string> BootMessage;
51  extern LIBARDOUR_API PBD::Signal3<void,std::string,std::string,bool> PluginScanMessage;
52  extern LIBARDOUR_API PBD::Signal1<void,int> PluginScanTimeout;
53  extern LIBARDOUR_API PBD::Signal0<void> GUIIdle;
54  extern LIBARDOUR_API PBD::Signal3<bool,std::string,std::string,int> CopyConfigurationFiles;
55 
64  LIBARDOUR_API bool init (bool with_vst, bool try_optimization, const char* localedir);
66  LIBARDOUR_API void cleanup ();
69 
71 
72  extern LIBARDOUR_API const char* const ardour_config_info;
73 
74  LIBARDOUR_API void find_bindings_files (std::map<std::string,std::string>&);
75 
76  /* these only impact bundled installations */
80 
82 
83  LIBARDOUR_API void setup_fpu ();
84  LIBARDOUR_API std::vector<SyncSource> get_available_sync_options();
85 
86  /* the @param ui_handler will be called if there are old configuration
87  * files to be copied. It should (probably) ask the user about the
88  * action, and return true or false depending on whether or not the
89  * copy should take place.
90  */
92  LIBARDOUR_API int handle_old_configuration_files (boost::function<bool (std::string const&, std::string const&, int)> ui_handler);
93 }
94 
95 #endif /* __ardour_ardour_h__ */
96 
LIBARDOUR_API void find_bindings_files(std::map< std::string, std::string > &)
LIBARDOUR_API void setup_fpu()
Definition: globals.cc:561
uint64_t microseconds_t
Definition: ardour_ui.cc:97
LIBARDOUR_API PBD::Signal3< bool, std::string, std::string, int > CopyConfigurationFiles
Definition: globals.cc:139
LIBARDOUR_API PBD::Signal1< void, int > PluginScanTimeout
Definition: globals.cc:137
LIBARDOUR_API int handle_old_configuration_files(boost::function< bool(std::string const &, std::string const &, int)> ui_handler)
Definition: globals.cc:358
LIBARDOUR_API bool translations_are_enabled()
Definition: globals.cc:636
LIBARDOUR_API std::string translation_enable_path()
Definition: globals.cc:630
LIBARDOUR_API PBD::Signal0< void > GUIIdle
Definition: globals.cc:138
LIBARDOUR_API microseconds_t get_microseconds()
Definition: globals.cc:728
LIBARDOUR_API bool no_auto_connect()
Definition: globals.cc:555
LIBARDOUR_API void init_post_engine()
Definition: globals.cc:487
static const char * localedir
Definition: load_session.cc:12
LIBARDOUR_API void check_for_old_configuration_files()
Definition: globals.cc:336
Definition: amp.h:29
LIBARDOUR_API void make_property_quarks()
#define LIBARDOUR_API
LIBARDOUR_API const char *const ardour_config_info
Definition: config_text.cc:3
LIBARDOUR_API std::vector< SyncSource > get_available_sync_options()
Definition: globals.cc:682
LIBARDOUR_API void cleanup()
Definition: globals.cc:502
LIBARDOUR_API bool set_translations_enabled(bool)
Definition: globals.cc:657
LIBARDOUR_API PBD::Signal1< void, std::string > BootMessage
Definition: globals.cc:135
LIBARDOUR_API PBD::Signal3< void, std::string, std::string, bool > PluginScanMessage
Definition: globals.cc:136
LIBARDOUR_API uint64_t AudioEngine
Definition: session.h:982
LIBARDOUR_API bool init(bool with_vst, bool try_optimization, const char *localedir)
Definition: globals.cc:376
Definition: ardour.h:41
LIBARDOUR_API PBD::PropertyChange bounds_change
Definition: globals.cc:150