2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file access library * |
* libgig - C++ cross-platform Gigasampler format file access library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2017 by Christian Schoenebeck * |
* Copyright (C) 2003-2019 by Christian Schoenebeck * |
6 |
* <cuse@users.sourceforge.net> * |
* <cuse@users.sourceforge.net> * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
36 |
# define DEBUG 0 |
# define DEBUG 0 |
37 |
#endif |
#endif |
38 |
|
|
39 |
|
#ifndef OVERRIDE |
40 |
|
# if defined(__cplusplus) && __cplusplus >= 201103L |
41 |
|
# define OVERRIDE override |
42 |
|
# else |
43 |
|
# define OVERRIDE |
44 |
|
# endif |
45 |
|
#endif |
46 |
|
|
47 |
#include <string> |
#include <string> |
48 |
#include <list> |
#include <list> |
49 |
#include <map> |
#include <map> |
50 |
#include <set> |
#include <set> |
51 |
|
#include <vector> |
52 |
#include <iostream> |
#include <iostream> |
53 |
#include <stdarg.h> |
#include <stdarg.h> |
54 |
|
|
63 |
# include <unistd.h> |
# include <unistd.h> |
64 |
#endif // POSIX |
#endif // POSIX |
65 |
|
|
66 |
#ifdef _MSC_VER |
#if defined _MSC_VER && _MSC_VER < 1600 |
67 |
// Visual C++ 2008 doesn't have stdint.h |
// Visual C++ 2008 doesn't have stdint.h |
68 |
typedef __int8 int8_t; |
typedef __int8 int8_t; |
69 |
typedef __int16 int16_t; |
typedef __int16 int16_t; |
79 |
|
|
80 |
#ifdef WIN32 |
#ifdef WIN32 |
81 |
# if (_WIN32 && !_WIN64) || (__GNUC__ && !(__x86_64__ || __ppc64__)) /* if 32 bit windows compilation */ |
# if (_WIN32 && !_WIN64) || (__GNUC__ && !(__x86_64__ || __ppc64__)) /* if 32 bit windows compilation */ |
82 |
# define _WIN32_WINNT 0x0501 /* Win XP (no service pack): required for 32 bit compilation for GetFileSizeEx() to be declared by windows.h */ |
# if _WIN32_WINNT < 0x0501 |
83 |
|
# undef _WIN32_WINNT |
84 |
|
# define _WIN32_WINNT 0x0501 /* Win XP (no service pack): required for 32 bit compilation for GetFileSizeEx() to be declared by windows.h */ |
85 |
|
# endif |
86 |
# endif |
# endif |
87 |
# include <windows.h> |
# include <windows.h> |
88 |
typedef unsigned int uint; |
typedef unsigned int uint; |
220 |
float __range_min; ///< Only for internal usage, do not modify! |
float __range_min; ///< Only for internal usage, do not modify! |
221 |
float __range_max; ///< Only for internal usage, do not modify! |
float __range_max; ///< Only for internal usage, do not modify! |
222 |
progress_t(); |
progress_t(); |
223 |
|
std::vector<progress_t> subdivide(int iSubtasks); |
224 |
}; |
}; |
225 |
|
|
226 |
/** @brief Ordinary RIFF Chunk |
/** @brief Ordinary RIFF Chunk |