/[svn]/linuxsampler/trunk/src/common/global.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/global.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 738 by schoenebeck, Tue Aug 16 17:14:25 2005 UTC revision 1200 by iliev, Thu May 24 14:04:18 2007 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 Christian Schoenebeck                              *   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 23  Line 23 
23    
24  // All application global declarations are defined here.  // All application global declarations are defined here.
25    
26  #ifndef __GLOBAL_H__  #ifndef __LS_GLOBAL_H__
27  #define __GLOBAL_H__  #define __LS_GLOBAL_H__
28    
29  #include <stdlib.h>  #include <stdlib.h>
30  #include <stdint.h>  #include <stdint.h>
# Line 33  Line 33 
33  #include <string>  #include <string>
34  #include <sstream>  #include <sstream>
35    
36  #ifdef HAVE_CONFIG_H  // i.e. OSX people using the xcode project file will avoid inclusion of
37    // config.h here and rather use their manually maintained version.h
38    #ifndef OVERRIDE_CONFIG_H
39  # include <config.h>  # include <config.h>
40  #endif  #endif
41    
# Line 84  Line 86 
86  #ifndef CONFIG_FILTER_CUTOFF_MAX  #ifndef CONFIG_FILTER_CUTOFF_MAX
87  # error "Configuration macro CONFIG_FILTER_CUTOFF_MAX not defined!"  # error "Configuration macro CONFIG_FILTER_CUTOFF_MAX not defined!"
88  #endif // CONFIG_FILTER_CUTOFF_MAX  #endif // CONFIG_FILTER_CUTOFF_MAX
89    #ifndef CONFIG_PORTAMENTO_TIME_MIN
90    # error "Configuration macro CONFIG_PORTAMENTO_TIME_MIN not defined!"
91    #endif // CONFIG_PORTAMENTO_TIME_MIN
92    #ifndef CONFIG_PORTAMENTO_TIME_MAX
93    # error "Configuration macro CONFIG_PORTAMENTO_TIME_MAX not defined!"
94    #endif // CONFIG_PORTAMENTO_TIME_MAX
95    #ifndef CONFIG_PORTAMENTO_TIME_DEFAULT
96    # error "Configuration macro CONFIG_PORTAMENTO_TIME_DEFAULT not defined!"
97    #endif // CONFIG_PORTAMENTO_TIME_DEFAULT
98    
99  #if CONFIG_DEBUG_LEVEL > 0  #if CONFIG_DEBUG_LEVEL > 0
100  #  define dmsg(debuglevel,x)    if (CONFIG_DEBUG_LEVEL >= debuglevel) {printf x; fflush(stdout);}  #  define dmsg(debuglevel,x)    if (CONFIG_DEBUG_LEVEL >= debuglevel) {printf x; fflush(stdout);}
# Line 124  template<class T> inline String ToString Line 135  template<class T> inline String ToString
135          return ss.str();          return ss.str();
136  }  }
137    
138  #endif // __GLOBAL_H__  class Runnable {
139        public:
140            virtual ~Runnable() { }
141            virtual void Run() = 0;
142    };
143    
144    extern double GLOBAL_VOLUME;
145    
146    #endif // __LS_GLOBAL_H__

Legend:
Removed from v.738  
changed lines
  Added in v.1200

  ViewVC Help
Powered by ViewVC