/[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 724 by iliev, Mon Jul 25 09:28:00 2005 UTC revision 885 by schoenebeck, Wed Jun 28 19:32:21 2006 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 69  Line 71 
71  #ifndef CONFIG_MAX_VOICES  #ifndef CONFIG_MAX_VOICES
72  # error "Configuration macro CONFIG_MAX_VOICES not defined!"  # error "Configuration macro CONFIG_MAX_VOICES not defined!"
73  #endif // CONFIG_MAX_VOICES  #endif // CONFIG_MAX_VOICES
74    #ifndef CONFIG_DEFAULT_SUBFRAGMENT_SIZE
75    # error "Configuration macro CONFIG_DEFAULT_SUBFRAGMENT_SIZE not defined!"
76    #endif // CONFIG_DEFAULT_SUBFRAGMENT_SIZE
77  #ifndef CONFIG_VOICE_STEAL_ALGO  #ifndef CONFIG_VOICE_STEAL_ALGO
78  # error "Configuration macro CONFIG_VOICE_STEAL_ALGO not defined!"  # error "Configuration macro CONFIG_VOICE_STEAL_ALGO not defined!"
79  #endif // CONFIG_VOICE_STEAL_ALGO  #endif // CONFIG_VOICE_STEAL_ALGO
80  #ifndef CONFIG_SYSEX_BUFFER_SIZE  #ifndef CONFIG_SYSEX_BUFFER_SIZE
81  # error "Configuration macro CONFIG_SYSEX_BUFFER_SIZE not defined!"  # error "Configuration macro CONFIG_SYSEX_BUFFER_SIZE not defined!"
82  #endif // CONFIG_SYSEX_BUFFER_SIZE  #endif // CONFIG_SYSEX_BUFFER_SIZE
 #ifndef CONFIG_FILTER_UPDATE_STEPS  
 # error "Configuration macro CONFIG_FILTER_UPDATE_STEPS not defined!"  
 #endif // CONFIG_FILTER_UPDATE_STEPS  
83  #ifndef CONFIG_FILTER_CUTOFF_MIN  #ifndef CONFIG_FILTER_CUTOFF_MIN
84  # error "Configuration macro CONFIG_FILTER_CUTOFF_MIN not defined!"  # error "Configuration macro CONFIG_FILTER_CUTOFF_MIN not defined!"
85  #endif // CONFIG_FILTER_CUTOFF_MIN  #endif // CONFIG_FILTER_CUTOFF_MIN
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__  #endif // __LS_GLOBAL_H__

Legend:
Removed from v.724  
changed lines
  Added in v.885

  ViewVC Help
Powered by ViewVC