s/ParamID/Parameter/
[ardour.git] / libs / ardour / ardour / ardour.h
1 /*
2     Copyright (C) 1999 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 <limits.h>
24 #include <string>
25 #include <signal.h>
26
27 #include <pbd/error.h>
28 #include <pbd/failed_constructor.h>
29
30 #include <ardour/configuration.h>
31 #include <ardour/types.h>
32
33 namespace MIDI {
34         class MachineControl;
35         class Port;
36 }
37
38 namespace ARDOUR {
39
40         class AudioEngine;
41         class OSC;
42
43         extern OSC* osc;
44
45         static const nframes_t max_frames = JACK_MAX_FRAMES;
46
47         int init (bool with_vst, bool try_optimization);
48         int cleanup ();
49
50         int setup_midi(AudioEngine& engine);
51         
52         std::string get_ardour_revision ();
53
54         const layer_t max_layer = UCHAR_MAX;
55
56         microseconds_t get_microseconds ();
57
58         Change new_change ();
59
60         extern Change StartChanged;
61         extern Change LengthChanged;
62         extern Change PositionChanged;
63         extern Change NameChanged;
64         extern Change BoundsChanged;
65
66         struct LocaleGuard {
67             LocaleGuard (const char*);
68             ~LocaleGuard ();
69             const char* old;
70         };
71
72         static const double SHUTTLE_FRACT_SPEED1=0.48412291827; /* derived from A1,A2 */
73
74         void setup_fpu ();
75 }
76
77 /* how do we make these be within the Ardour namespace? */
78
79 extern MIDI::Port* default_mmc_port;
80 extern MIDI::Port* default_mtc_port;
81 extern MIDI::Port* default_midi_port;
82
83 #endif /* __ardour_ardour_h__ */
84