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

Contents of /linuxsampler/trunk/src/common/global.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1005 - (show annotations) (download)
Fri Dec 29 20:06:14 2006 UTC (17 years, 3 months ago) by schoenebeck
File size: 2225 byte(s)
* global volume can now be altered at runtime
  (added two new LSCP commands for this, LSCP specs updated)

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005, 2006 Christian Schoenebeck *
7 * *
8 * 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 *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21 * MA 02111-1307 USA *
22 ***************************************************************************/
23
24 // i.e. OSX people using the xcode project file will avoid inclusion of
25 // config.h here and rather use their manually maintained version.h
26 #ifndef OVERRIDE_CONFIG_H
27 # include <config.h>
28 #endif
29
30 #ifndef CONFIG_GLOBAL_ATTENUATION_DEFAULT
31 # error "Configuration macro CONFIG_GLOBAL_ATTENUATION_DEFAULT not defined!"
32 #endif // CONFIG_GLOBAL_ATTENUATION_DEFAULT
33
34 // this is the sampler global volume coefficient that should be obeyed by all
35 // sampler engine implementations
36 double GLOBAL_VOLUME = CONFIG_GLOBAL_ATTENUATION_DEFAULT;

  ViewVC Help
Powered by ViewVC