~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/ardour/ardour/ardour.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
37
#include "ardour/types.h"
 
38
 
 
39
#include <jack/jack.h>
 
40
 
 
41
namespace MIDI {
 
42
        class MachineControl;
 
43
        class Port;
 
44
}
 
45
 
 
46
namespace ARDOUR {
 
47
 
 
48
        class AudioEngine;
 
49
 
 
50
        extern PBD::Signal1<void,std::string> BootMessage;
 
51
        extern PBD::Signal0<void> GUIIdle;
 
52
 
 
53
        /**
 
54
         * @param with_vst true to enable VST Support
 
55
         * @param try_optimization true to enable hardware optimized routines
 
56
         * for mixing, finding peak values etc.
 
57
         * @param localedir Directory to look for localisation files
 
58
         *
 
59
         * @return true if Ardour library was successfully initialized
 
60
         */
 
61
        bool init (bool with_vst, bool try_optimization, const char* localedir);
 
62
        void init_post_engine ();
 
63
        int cleanup ();
 
64
        bool no_auto_connect ();
 
65
        void make_property_quarks ();
 
66
 
 
67
        extern PBD::PropertyChange bounds_change;
 
68
 
 
69
        extern const char* const ardour_config_info;
 
70
 
 
71
        void find_bindings_files (std::map<std::string,std::string>&);
 
72
 
 
73
        /* these only impact bundled installations */
 
74
        std::string translation_enable_path ();
 
75
        bool translations_are_enabled ();
 
76
        bool set_translations_enabled (bool);
 
77
 
 
78
        static inline microseconds_t get_microseconds () {
 
79
                return (microseconds_t) jack_get_time();
 
80
        }
 
81
 
 
82
        void setup_fpu ();
 
83
        std::vector<SyncSource> get_available_sync_options();
 
84
}
 
85
 
 
86
#endif /* __ardour_ardour_h__ */
 
87