add a way to see (most of) the waf config used to build ardour at run time (from...
[ardour.git] / libs / ardour / ardour / ardour.h
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
26 #include <limits.h>
27 #include <signal.h>
28
29 #include "pbd/signals.h"
30
31 #include "pbd/error.h"
32 #include "pbd/failed_constructor.h"
33 #include "pbd/locale_guard.h"
34
35 #include "ardour/types.h"
36
37 #include <jack/jack.h> 
38
39 namespace MIDI {
40         class MachineControl;
41         class Port;
42 }
43
44 namespace ARDOUR {
45
46         class AudioEngine;
47
48         static const nframes_t max_frames = JACK_MAX_FRAMES;
49         extern PBD::Signal1<void,std::string> BootMessage;
50
51         int init (bool with_vst, bool try_optimization);
52         void init_post_engine ();
53         int cleanup ();
54         bool no_auto_connect ();
55
56         std::string get_ardour_revision ();
57         extern const char* const ardour_config_info;
58
59         void find_bindings_files (std::map<std::string,std::string>&);
60
61         const layer_t max_layer = UCHAR_MAX;
62
63         static inline microseconds_t get_microseconds () {
64                 return (microseconds_t) jack_get_time();
65         }
66
67         Change new_change ();
68
69         extern Change StartChanged;
70         extern Change LengthChanged;
71         extern Change PositionChanged;
72         extern Change NameChanged;
73         extern Change BoundsChanged;
74
75         static const double SHUTTLE_FRACT_SPEED1=0.48412291827; /* derived from A1,A2 */
76
77         void setup_fpu ();
78
79         extern MIDI::Port* default_mmc_port;
80         extern MIDI::Port* default_mtc_port;
81         extern MIDI::Port* default_midi_port;
82         extern MIDI::Port *default_midi_clock_port;
83
84         int setup_midi ();
85 }
86
87 #endif /* __ardour_ardour_h__ */
88