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

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

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

revision 1930 by schoenebeck, Sat Jul 4 12:31:44 2009 UTC revision 2473 by schoenebeck, Sun Sep 15 17:55:56 2013 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 - 2009 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2013 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 90  inline int ToInt(const std::string& s) t Line 90  inline int ToInt(const std::string& s) t
90      return i;      return i;
91  }  }
92    
93    inline float ToFloat(const std::string& s) throw(LinuxSampler::Exception) {
94        float i;
95        std::istringstream iss(s);
96        if(!(iss >> i)) throw LinuxSampler::Exception("Not a floating-point number");
97        return i;
98    }
99    
100  class Runnable {  class Runnable {
101      public:      public:
102          virtual ~Runnable() { }          virtual ~Runnable() { }
# Line 100  extern double GLOBAL_VOLUME; Line 107  extern double GLOBAL_VOLUME;
107  extern int GLOBAL_MAX_VOICES;  extern int GLOBAL_MAX_VOICES;
108  extern int GLOBAL_MAX_STREAMS;  extern int GLOBAL_MAX_STREAMS;
109    
110    //TODO: (hopefully) just a temporary nasty hack for launching gigedit on the main thread on Mac (see comments in gigedit.cpp for details)
111    #if defined(__APPLE__)
112    extern bool g_mainThreadCallbackSupported;
113    extern void (*g_mainThreadCallback)(void* info);
114    extern void* g_mainThreadCallbackInfo;
115    extern bool g_fireMainThreadCallback;
116    #endif
117    
118  // I read with some Linux kernel versions (between 2.4.18 and 2.4.21)  // I read with some Linux kernel versions (between 2.4.18 and 2.4.21)
119  // sscanf() might be buggy regarding parsing of hex characters, so ...  // sscanf() might be buggy regarding parsing of hex characters, so ...
120  int hexToNumber(char hex_digit);  int hexToNumber(char hex_digit);

Legend:
Removed from v.1930  
changed lines
  Added in v.2473

  ViewVC Help
Powered by ViewVC