diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-09-14 11:53:03 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-09-14 11:53:03 +0400 |
commit | 89307ea64874c8ee9ee951f1a717249c03982877 (patch) | |
tree | 002abcec7613faa8860d0c9eb6cf30a287badd80 /src/thirdparty/SoundTouch | |
parent | b8a5095d3b061315d926a1fba64157142ba8f3d4 (diff) |
update lcms, soundtouch
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3725 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/thirdparty/SoundTouch')
-rw-r--r-- | src/thirdparty/SoundTouch/include/STTypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/thirdparty/SoundTouch/include/STTypes.h b/src/thirdparty/SoundTouch/include/STTypes.h index 9c19d65c5..65772efcd 100644 --- a/src/thirdparty/SoundTouch/include/STTypes.h +++ b/src/thirdparty/SoundTouch/include/STTypes.h @@ -146,8 +146,20 @@ namespace soundtouch #endif
#endif // SOUNDTOUCH_INTEGER_SAMPLES
+
};
+// define ST_NO_EXCEPTION_HANDLING switch to disable throwing std exceptions:
+// #define ST_NO_EXCEPTION_HANDLING 1
+#ifdef ST_NO_EXCEPTION_HANDLING
+ // Exceptions disabled. Throw asserts instead if enabled.
+ #include <assert.h>
+ #define ST_THROW_RT_ERROR(x) {assert((const char *)x);}
+#else
+ // use c++ standard exceptions
+ #include <stdexcept>
+ #define ST_THROW_RT_ERROR(x) {throw std::runtime_error(x);}
+#endif
// When this #define is active, eliminates a clicking sound when the "rate" or "pitch"
// parameter setting crosses from value <1 to >=1 or vice versa during processing.
|