diff options
Diffstat (limited to 'src/thirdparty/SoundTouch/source/RateTransposer.cpp')
-rw-r--r-- | src/thirdparty/SoundTouch/source/RateTransposer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/thirdparty/SoundTouch/source/RateTransposer.cpp b/src/thirdparty/SoundTouch/source/RateTransposer.cpp index 2afc18750..772e95b21 100644 --- a/src/thirdparty/SoundTouch/source/RateTransposer.cpp +++ b/src/thirdparty/SoundTouch/source/RateTransposer.cpp @@ -42,11 +42,9 @@ #include <assert.h>
#include <stdlib.h>
#include <stdio.h>
-#include <stdexcept>
#include "RateTransposer.h"
#include "AAFilter.h"
-using namespace std;
using namespace soundtouch;
@@ -108,8 +106,8 @@ public: // depending on if we've a MMX/SSE/etc-capable CPU available or not.
void * RateTransposer::operator new(size_t s)
{
- throw runtime_error("Error in RateTransoser::new: don't use \"new TDStretch\" directly, use \"newInstance\" to create a new instance instead!");
- return NULL;
+ ST_THROW_RT_ERROR("Error in RateTransoser::new: don't use \"new TDStretch\" directly, use \"newInstance\" to create a new instance instead!");
+ return newInstance();
}
|