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 - 2008 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 * |
98 |
// this is the sampler global setting for maximum disk streams |
// this is the sampler global setting for maximum disk streams |
99 |
int GLOBAL_MAX_STREAMS = CONFIG_DEFAULT_MAX_STREAMS; |
int GLOBAL_MAX_STREAMS = CONFIG_DEFAULT_MAX_STREAMS; |
100 |
|
|
101 |
|
//TODO: (hopefully) just a temporary nasty hack for launching gigedit on the main thread on Mac (see comments in gigedit.cpp for details) |
102 |
|
#if defined(__APPLE__) |
103 |
|
bool g_mainThreadCallbackSupported = false; |
104 |
|
void (*g_mainThreadCallback)(void* info) = 0; |
105 |
|
void* g_mainThreadCallbackInfo = 0; |
106 |
|
bool g_fireMainThreadCallback = false; |
107 |
|
#endif |
108 |
|
|
109 |
int hexToNumber(char hex_digit) { |
int hexToNumber(char hex_digit) { |
110 |
switch (hex_digit) { |
switch (hex_digit) { |
111 |
case '0': return 0; |
case '0': return 0; |