summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2016-04-13 17:42:51 -0700
committerRJ Ryan <rryan@mixxx.org>2016-04-13 17:42:51 -0700
commit987ff189463cc77e43b98d3042616d8347455008 (patch)
tree5a0c9f25141027493da6e85c1090c06507788eaf /lib
parent3ffd6ffb4451e4b11664bfe8e4afa3a5a4a75a0f (diff)
parent1396223555d7c7dbdd744d7059d14c7a066af705 (diff)
Merge pull request #902 from uklotzde/Upgrade3rdPartyLibs
Upgrade 3rd-Party Libraries/Plugins
Diffstat (limited to 'lib')
-rw-r--r--lib/soundtouch-1.9.2/AAFilter.cpp (renamed from lib/soundtouch-1.8.0/AAFilter.cpp)2
-rw-r--r--lib/soundtouch-1.9.2/AAFilter.h (renamed from lib/soundtouch-1.8.0/AAFilter.h)2
-rw-r--r--lib/soundtouch-1.9.2/BPMDetect.cpp (renamed from lib/soundtouch-1.8.0/BPMDetect.cpp)5
-rw-r--r--lib/soundtouch-1.9.2/BPMDetect.h (renamed from lib/soundtouch-1.8.0/BPMDetect.h)2
-rw-r--r--lib/soundtouch-1.9.2/COPYING.TXT (renamed from lib/soundtouch-1.8.0/COPYING.TXT)0
-rw-r--r--lib/soundtouch-1.9.2/FIFOSampleBuffer.cpp (renamed from lib/soundtouch-1.8.0/FIFOSampleBuffer.cpp)2
-rw-r--r--lib/soundtouch-1.9.2/FIFOSampleBuffer.h (renamed from lib/soundtouch-1.8.0/FIFOSampleBuffer.h)2
-rw-r--r--lib/soundtouch-1.9.2/FIFOSamplePipe.h (renamed from lib/soundtouch-1.8.0/FIFOSamplePipe.h)2
-rw-r--r--lib/soundtouch-1.9.2/FIRFilter.cpp (renamed from lib/soundtouch-1.8.0/FIRFilter.cpp)65
-rw-r--r--lib/soundtouch-1.9.2/FIRFilter.h (renamed from lib/soundtouch-1.8.0/FIRFilter.h)8
-rw-r--r--lib/soundtouch-1.9.2/InterpolateCubic.cpp (renamed from lib/soundtouch-1.8.0/InterpolateCubic.cpp)0
-rw-r--r--lib/soundtouch-1.9.2/InterpolateCubic.h (renamed from lib/soundtouch-1.8.0/InterpolateCubic.h)4
-rw-r--r--lib/soundtouch-1.9.2/InterpolateLinear.cpp (renamed from lib/soundtouch-1.8.0/InterpolateLinear.cpp)15
-rw-r--r--lib/soundtouch-1.9.2/InterpolateLinear.h (renamed from lib/soundtouch-1.8.0/InterpolateLinear.h)6
-rw-r--r--lib/soundtouch-1.9.2/InterpolateShannon.cpp (renamed from lib/soundtouch-1.8.0/InterpolateShannon.cpp)0
-rw-r--r--lib/soundtouch-1.9.2/InterpolateShannon.h (renamed from lib/soundtouch-1.8.0/InterpolateShannon.h)4
-rw-r--r--lib/soundtouch-1.9.2/PeakFinder.cpp (renamed from lib/soundtouch-1.8.0/PeakFinder.cpp)20
-rw-r--r--lib/soundtouch-1.9.2/PeakFinder.h (renamed from lib/soundtouch-1.8.0/PeakFinder.h)2
-rw-r--r--lib/soundtouch-1.9.2/RateTransposer.cpp (renamed from lib/soundtouch-1.8.0/RateTransposer.cpp)16
-rw-r--r--lib/soundtouch-1.9.2/RateTransposer.h (renamed from lib/soundtouch-1.8.0/RateTransposer.h)10
-rw-r--r--lib/soundtouch-1.9.2/STTypes.h (renamed from lib/soundtouch-1.8.0/STTypes.h)7
-rw-r--r--lib/soundtouch-1.9.2/SoundTouch.cpp (renamed from lib/soundtouch-1.8.0/SoundTouch.cpp)120
-rw-r--r--lib/soundtouch-1.9.2/SoundTouch.h (renamed from lib/soundtouch-1.8.0/SoundTouch.h)56
-rw-r--r--lib/soundtouch-1.9.2/TDStretch.cpp (renamed from lib/soundtouch-1.8.0/TDStretch.cpp)281
-rw-r--r--lib/soundtouch-1.9.2/TDStretch.h (renamed from lib/soundtouch-1.8.0/TDStretch.h)49
-rw-r--r--lib/soundtouch-1.9.2/cpu_detect.h (renamed from lib/soundtouch-1.8.0/cpu_detect.h)2
-rw-r--r--lib/soundtouch-1.9.2/cpu_detect_x86.cpp (renamed from lib/soundtouch-1.8.0/cpu_detect_x86.cpp)2
-rw-r--r--lib/soundtouch-1.9.2/mmx_optimized.cpp (renamed from lib/soundtouch-1.8.0/mmx_optimized.cpp)29
-rw-r--r--lib/soundtouch-1.9.2/soundtouch_config.h (renamed from lib/soundtouch-1.8.0/soundtouch_config.h)0
-rw-r--r--lib/soundtouch-1.9.2/sse_optimized.cpp (renamed from lib/soundtouch-1.8.0/sse_optimized.cpp)20
-rw-r--r--lib/vamp-2.6/src/doc-overview162
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/Files.cpp277
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/Files.h63
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginBufferingAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginBufferingAdapter.cpp)43
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginChannelAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginChannelAdapter.cpp)0
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginHostAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginHostAdapter.cpp)8
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginInputDomainAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginInputDomainAdapter.cpp)133
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginLoader.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginLoader.cpp)298
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginSummarisingAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginSummarisingAdapter.cpp)12
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/PluginWrapper.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/PluginWrapper.cpp)0
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/RealTime.cpp (renamed from lib/vamp-2.3/src/vamp-hostsdk/RealTime.cpp)0
-rw-r--r--lib/vamp-2.6/src/vamp-hostsdk/Window.h (renamed from lib/vamp-2.3/src/vamp-hostsdk/Window.h)6
-rw-r--r--lib/vamp-2.6/src/vamp-sdk/FFT.cpp75
-rw-r--r--lib/vamp-2.6/src/vamp-sdk/FFTimpl.cpp116
-rw-r--r--lib/vamp-2.6/src/vamp-sdk/PluginAdapter.cpp (renamed from lib/vamp-2.3/src/vamp-sdk/PluginAdapter.cpp)4
-rw-r--r--lib/vamp-2.6/src/vamp-sdk/RealTime.cpp (renamed from lib/vamp-2.3/src/vamp-sdk/RealTime.cpp)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/Plugin.h (renamed from lib/vamp-2.3/vamp-hostsdk/Plugin.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginBase.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginBase.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginBufferingAdapter.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginBufferingAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginChannelAdapter.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginChannelAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginHostAdapter.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginHostAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginInputDomainAdapter.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginInputDomainAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginLoader.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginLoader.h)3
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginSummarisingAdapter.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginSummarisingAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/PluginWrapper.h (renamed from lib/vamp-2.3/vamp-hostsdk/PluginWrapper.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/RealTime.h (renamed from lib/vamp-2.3/vamp-hostsdk/RealTime.h)0
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/host-c.h147
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/hostguard.h (renamed from lib/vamp-2.3/vamp-hostsdk/hostguard.h)4
-rw-r--r--lib/vamp-2.6/vamp-hostsdk/vamp-hostsdk.h (renamed from lib/vamp-2.3/vamp-hostsdk/vamp-hostsdk.h)0
-rw-r--r--lib/vamp-2.6/vamp-sdk/FFT.h100
-rw-r--r--lib/vamp-2.6/vamp-sdk/Plugin.h (renamed from lib/vamp-2.3/vamp-sdk/Plugin.h)12
-rw-r--r--lib/vamp-2.6/vamp-sdk/PluginAdapter.h (renamed from lib/vamp-2.3/vamp-sdk/PluginAdapter.h)0
-rw-r--r--lib/vamp-2.6/vamp-sdk/PluginBase.h (renamed from lib/vamp-2.3/vamp-sdk/PluginBase.h)10
-rw-r--r--lib/vamp-2.6/vamp-sdk/RealTime.h (renamed from lib/vamp-2.3/vamp-sdk/RealTime.h)0
-rw-r--r--lib/vamp-2.6/vamp-sdk/plugguard.h (renamed from lib/vamp-2.3/vamp-sdk/plugguard.h)4
-rw-r--r--lib/vamp-2.6/vamp-sdk/vamp-sdk.h (renamed from lib/vamp-2.3/vamp-sdk/vamp-sdk.h)1
-rw-r--r--lib/vamp-2.6/vamp/vamp.h (renamed from lib/vamp-2.3/vamp/vamp.h)2
67 files changed, 1544 insertions, 669 deletions
diff --git a/lib/soundtouch-1.8.0/AAFilter.cpp b/lib/soundtouch-1.9.2/AAFilter.cpp
index a942859a37..c69f356f68 100644
--- a/lib/soundtouch-1.8.0/AAFilter.cpp
+++ b/lib/soundtouch-1.9.2/AAFilter.cpp
@@ -12,7 +12,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2014-01-05 16:40:22 -0500 (Sun, 05 Jan 2014) $
+// Last changed : $Date: 2014-01-05 23:40:22 +0200 (Sun, 05 Jan 2014) $
// File revision : $Revision: 4 $
//
// $Id: AAFilter.cpp 177 2014-01-05 21:40:22Z oparviai $
diff --git a/lib/soundtouch-1.8.0/AAFilter.h b/lib/soundtouch-1.9.2/AAFilter.h
index 72f5b8a968..33e96948ec 100644
--- a/lib/soundtouch-1.8.0/AAFilter.h
+++ b/lib/soundtouch-1.9.2/AAFilter.h
@@ -13,7 +13,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2014-01-07 14:41:23 -0500 (Tue, 07 Jan 2014) $
+// Last changed : $Date: 2014-01-07 21:41:23 +0200 (Tue, 07 Jan 2014) $
// File revision : $Revision: 4 $
//
// $Id: AAFilter.h 187 2014-01-07 19:41:23Z oparviai $
diff --git a/lib/soundtouch-1.8.0/BPMDetect.cpp b/lib/soundtouch-1.9.2/BPMDetect.cpp
index 0cee95716c..39dae83761 100644
--- a/lib/soundtouch-1.8.0/BPMDetect.cpp
+++ b/lib/soundtouch-1.9.2/BPMDetect.cpp
@@ -26,10 +26,10 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2012-08-30 15:45:25 -0400 (Thu, 30 Aug 2012) $
+// Last changed : $Date: 2015-02-21 23:24:29 +0200 (Sat, 21 Feb 2015) $
// File revision : $Revision: 4 $
//
-// $Id: BPMDetect.cpp 149 2012-08-30 19:45:25Z oparviai $
+// $Id: BPMDetect.cpp 202 2015-02-21 21:24:29Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -226,6 +226,7 @@ void BPMDetect::updateXCorr(int process_samples)
assert(buffer->numSamples() >= (uint)(process_samples + windowLen));
pBuffer = buffer->ptrBegin();
+ #pragma omp parallel for
for (offs = windowStart; offs < windowLen; offs ++)
{
LONG_SAMPLETYPE sum;
diff --git a/lib/soundtouch-1.8.0/BPMDetect.h b/lib/soundtouch-1.9.2/BPMDetect.h
index f21890adf9..69d98143a7 100644
--- a/lib/soundtouch-1.8.0/BPMDetect.h
+++ b/lib/soundtouch-1.9.2/BPMDetect.h
@@ -26,7 +26,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2012-08-30 15:53:44 -0400 (Thu, 30 Aug 2012) $
+// Last changed : $Date: 2012-08-30 22:53:44 +0300 (Thu, 30 Aug 2012) $
// File revision : $Revision: 4 $
//
// $Id: BPMDetect.h 150 2012-08-30 19:53:44Z oparviai $
diff --git a/lib/soundtouch-1.8.0/COPYING.TXT b/lib/soundtouch-1.9.2/COPYING.TXT
index 5b2161be20..5b2161be20 100644
--- a/lib/soundtouch-1.8.0/COPYING.TXT
+++ b/lib/soundtouch-1.9.2/COPYING.TXT
diff --git a/lib/soundtouch-1.8.0/FIFOSampleBuffer.cpp b/lib/soundtouch-1.9.2/FIFOSampleBuffer.cpp
index a8bf164d53..5f5ec4b7db 100644
--- a/lib/soundtouch-1.8.0/FIFOSampleBuffer.cpp
+++ b/lib/soundtouch-1.9.2/FIFOSampleBuffer.cpp
@@ -15,7 +15,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2012-11-08 13:53:01 -0500 (Thu, 08 Nov 2012) $
+// Last changed : $Date: 2012-11-08 20:53:01 +0200 (Thu, 08 Nov 2012) $
// File revision : $Revision: 4 $
//
// $Id: FIFOSampleBuffer.cpp 160 2012-11-08 18:53:01Z oparviai $
diff --git a/lib/soundtouch-1.8.0/FIFOSampleBuffer.h b/lib/soundtouch-1.9.2/FIFOSampleBuffer.h
index ee4d66db39..6f33df3daa 100644
--- a/lib/soundtouch-1.8.0/FIFOSampleBuffer.h
+++ b/lib/soundtouch-1.9.2/FIFOSampleBuffer.h
@@ -15,7 +15,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2014-01-05 16:40:22 -0500 (Sun, 05 Jan 2014) $
+// Last changed : $Date: 2014-01-05 23:40:22 +0200 (Sun, 05 Jan 2014) $
// File revision : $Revision: 4 $
//
// $Id: FIFOSampleBuffer.h 177 2014-01-05 21:40:22Z oparviai $
diff --git a/lib/soundtouch-1.8.0/FIFOSamplePipe.h b/lib/soundtouch-1.9.2/FIFOSamplePipe.h
index 22b3d7fe54..6e3105970b 100644
--- a/lib/soundtouch-1.8.0/FIFOSamplePipe.h
+++ b/lib/soundtouch-1.9.2/FIFOSamplePipe.h
@@ -17,7 +17,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2012-06-13 15:29:53 -0400 (Wed, 13 Jun 2012) $
+// Last changed : $Date: 2012-06-13 22:29:53 +0300 (Wed, 13 Jun 2012) $
// File revision : $Revision: 4 $
//
// $Id: FIFOSamplePipe.h 143 2012-06-13 19:29:53Z oparviai $
diff --git a/lib/soundtouch-1.8.0/FIRFilter.cpp b/lib/soundtouch-1.9.2/FIRFilter.cpp
index 0a7e07a9e9..e56969b053 100644
--- a/lib/soundtouch-1.8.0/FIRFilter.cpp
+++ b/lib/soundtouch-1.9.2/FIRFilter.cpp
@@ -11,10 +11,10 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2014-10-08 11:26:57 -0400 (Wed, 08 Oct 2014) $
+// Last changed : $Date: 2015-02-21 23:24:29 +0200 (Sat, 21 Feb 2015) $
// File revision : $Revision: 4 $
//
-// $Id: FIRFilter.cpp 201 2014-10-08 15:26:57Z oparviai $
+// $Id: FIRFilter.cpp 202 2015-02-21 21:24:29Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -61,22 +61,18 @@ FIRFilter::FIRFilter()
length = 0;
lengthDiv8 = 0;
filterCoeffs = NULL;
- sum = NULL;
- sumsize = 0;
}
FIRFilter::~FIRFilter()
{
delete[] filterCoeffs;
- delete[] sum;
}
// Usual C-version of the filter routine for stereo sound
uint FIRFilter::evaluateFilterStereo(SAMPLETYPE *dest, const SAMPLETYPE *src, uint numSamples) const
{
- uint i, j, end;
- LONG_SAMPLETYPE suml, sumr;
+ int j, end;
#ifdef SOUNDTOUCH_FLOAT_SAMPLES
// when using floating point samples, use a scaler instead of a divider
// because division is much slower operation than multiplying.
@@ -90,9 +86,12 @@ uint FIRFilter::evaluateFilterStereo(SAMPLETYPE *dest, const SAMPLETYPE *src, ui
end = 2 * (numSamples - length);
+ #pragma omp parallel for
for (j = 0; j < end; j += 2)
{
const SAMPLETYPE *ptr;
+ LONG_SAMPLETYPE suml, sumr;
+ uint i;
suml = sumr = 0;
ptr = src + j;
@@ -133,28 +132,31 @@ uint FIRFilter::evaluateFilterStereo(SAMPLETYPE *dest, const SAMPLETYPE *src, ui
// Usual C-version of the filter routine for mono sound
uint FIRFilter::evaluateFilterMono(SAMPLETYPE *dest, const SAMPLETYPE *src, uint numSamples) const
{
- uint i, j, end;
- LONG_SAMPLETYPE sum;
+ int j, end;
#ifdef SOUNDTOUCH_FLOAT_SAMPLES
// when using floating point samples, use a scaler instead of a divider
// because division is much slower operation than multiplying.
double dScaler = 1.0 / (double)resultDivider;
#endif
-
assert(length != 0);
end = numSamples - length;
+ #pragma omp parallel for
for (j = 0; j < end; j ++)
{
+ const SAMPLETYPE *pSrc = src + j;
+ LONG_SAMPLETYPE sum;
+ uint i;
+
sum = 0;
for (i = 0; i < length; i += 4)
{
// loop is unrolled by factor of 4 here for efficiency
- sum += src[i + 0] * filterCoeffs[i + 0] +
- src[i + 1] * filterCoeffs[i + 1] +
- src[i + 2] * filterCoeffs[i + 2] +
- src[i + 3] * filterCoeffs[i + 3];
+ sum += pSrc[i + 0] * filterCoeffs[i + 0] +
+ pSrc[i + 1] * filterCoeffs[i + 1] +
+ pSrc[i + 2] * filterCoeffs[i + 2] +
+ pSrc[i + 3] * filterCoeffs[i + 3];
}
#ifdef SOUNDTOUCH_INTEGER_SAMPLES
sum >>= resultDivFactor;
@@ -164,7 +166,6 @@ uint FIRFilter::evaluateFilterMono(SAMPLETYPE *dest, const SAMPLETYPE *src, uint
sum *= dScaler;
#endif // SOUNDTOUCH_INTEGER_SAMPLES
dest[j] = (SAMPLETYPE)sum;
- src ++;
}
return end;
}
@@ -172,15 +173,7 @@ uint FIRFilter::evaluateFilterMono(SAMPLETYPE *dest, const SAMPLETYPE *src, uint
uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uint numSamples, uint numChannels)
{
- uint i, j, end, c;
-
- if (sumsize < numChannels)
- {
- // allocate large enough array for keeping sums
- sumsize = numChannels;
- delete[] sum;
- sum = new LONG_SAMPLETYPE[numChannels];
- }
+ int j, end;
#ifdef SOUNDTOUCH_FLOAT_SAMPLES
// when using floating point samples, use a scaler instead of a divider
@@ -192,17 +185,21 @@ uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uin
assert(src != NULL);
assert(dest != NULL);
assert(filterCoeffs != NULL);
+ assert(numChannels < 16);
end = numChannels * (numSamples - length);
- for (c = 0; c < numChannels; c ++)
- {
- sum[c] = 0;
- }
-
+ #pragma omp parallel for
for (j = 0; j < end; j += numChannels)
{
const SAMPLETYPE *ptr;
+ LONG_SAMPLETYPE sums[16];
+ uint c, i;
+
+ for (c = 0; c < numChannels; c ++)
+ {
+ sums[c] = 0;
+ }
ptr = src + j;
@@ -211,7 +208,7 @@ uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uin
SAMPLETYPE coef=filterCoeffs[i];
for (c = 0; c < numChannels; c ++)
{
- sum[c] += ptr[0] * coef;
+ sums[c] += ptr[0] * coef;
ptr ++;
}
}
@@ -219,13 +216,11 @@ uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uin
for (c = 0; c < numChannels; c ++)
{
#ifdef SOUNDTOUCH_INTEGER_SAMPLES
- sum[c] >>= resultDivFactor;
+ sums[c] >>= resultDivFactor;
#else
- sum[c] *= dScaler;
+ sums[c] *= dScaler;
#endif // SOUNDTOUCH_INTEGER_SAMPLES
- *dest = (SAMPLETYPE)sum[c];
- dest++;
- sum[c] = 0;
+ dest[j+c] = (SAMPLETYPE)sums[c];
}
}
return numSamples - length;
diff --git a/lib/soundtouch-1.8.0/FIRFilter.h b/lib/soundtouch-1.9.2/FIRFilter.h
index 9bbfcd00b4..6b14238ce8 100644
--- a/lib/soundtouch-1.8.0/FIRFilter.h
+++ b/lib/soundtouch-1.9.2/FIRFilter.h
@@ -11,10 +11,10 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// Last changed : $Date: 2014-10-08 11:26:57 -0400 (Wed, 08 Oct 2014) $
+// Last changed : $Date: 2015-02-21 23:24:29 +0200 (Sat, 21 Feb 2015) $
// File revision : $Revision: 4 $
//
-// $Id: FIRFilter.h 201 2014-10-08 15:26:57Z oparviai $
+// $Id: FIRFilter.h 202 2015-02-21 21:24:29Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -65,10 +65,6 @@ protected:
// Memory for filter coefficients
SAMPLETYPE *filterCoeffs;
- // Memory for keeping temporary sums in multichannel processing
- LONG_SAMPLETYPE *sum;
- uint sumsize;
-
virtual uint evaluateFilterStereo(SAMPLETYPE *dest,
const SAMPLETYPE *src,
uint numSamples) const;
diff --git a/lib/soundtouch-1.8.0/InterpolateCubic.cpp b/lib/soundtouch-1.9.2/InterpolateCubic.cpp
index 06931173eb..06931173eb 100644
--- a/lib/soundtouch-1.8.0/InterpolateCubic.cpp
+++ b/lib/soundtouch-1.9.2/InterpolateCubic.cpp
diff --git a/lib/soundtouch-1.8.0/InterpolateCubic.h b/lib/soundtouch-1.9.2/InterpolateCubic.h
index 6c966669bc..2f6b061a21 100644
--- a/lib/soundtouch-1.8.0/InterpolateCubic.h
+++ b/lib/soundtouch-1.9.2/InterpolateCubic.h
@@ -8,7 +8,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// $Id: InterpolateCubic.h 179 2014-01-06 18:41:42Z oparviai $
+// $Id: InterpolateCubic.h 225 2015-07-26 14:45:48Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -56,7 +56,7 @@ protected:
const SAMPLETYPE *src,
int &srcSamples);
- float fract;
+ double fract;
public:
InterpolateCubic();
diff --git a/lib/soundtouch-1.8.0/InterpolateLinear.cpp b/lib/soundtouch-1.9.2/InterpolateLinear.cpp
index 792c22bf1f..0f9a03e1b9 100644
--- a/lib/soundtouch-1.8.0/InterpolateLinear.cpp
+++ b/lib/soundtouch-1.9.2/InterpolateLinear.cpp
@@ -8,7 +8,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// $Id: InterpolateLinear.cpp 180 2014-01-06 19:16:02Z oparviai $
+// $Id: InterpolateLinear.cpp 225 2015-07-26 14:45:48Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -170,9 +170,9 @@ int InterpolateLinearInteger::transposeMulti(SAMPLETYPE *dest, const SAMPLETYPE
// Sets new target iRate. Normal iRate = 1.0, smaller values represent slower
// iRate, larger faster iRates.
-void InterpolateLinearInteger::setRate(float newRate)
+void InterpolateLinearInteger::setRate(double newRate)
{
- iRate = (int)(newRate * SCALE + 0.5f);
+ iRate = (int)(newRate * SCALE + 0.5);
TransposerBase::setRate(newRate);
}
@@ -190,7 +190,7 @@ InterpolateLinearFloat::InterpolateLinearFloat() : TransposerBase()
// Notice: use local function calling syntax for sake of clarity,
// to indicate the fact that C++ constructor can't call virtual functions.
resetRegisters();
- setRate(1.0f);
+ setRate(1.0);
}
@@ -275,12 +275,13 @@ int InterpolateLinearFloat::transposeMulti(SAMPLETYPE *dest, const SAMPLETYPE *s
i = 0;
while (srcCount < srcSampleEnd)
{
- float temp, vol1;
+ float temp, vol1, fract_float;
- vol1 = (1.0f- fract);
+ vol1 = (float)(1.0 - fract);
+ fract_float = (float)fract;
for (int c = 0; c < numChannels; c ++)
{
- temp = vol1 * src[c] + fract * src[c + numChannels];
+ temp = vol1 * src[c] + fract_float * src[c + numChannels];
*dest = (SAMPLETYPE)temp;
dest ++;
}
diff --git a/lib/soundtouch-1.8.0/InterpolateLinear.h b/lib/soundtouch-1.9.2/InterpolateLinear.h
index b1ae0bb3ca..658330331c 100644
--- a/lib/soundtouch-1.8.0/InterpolateLinear.h
+++ b/lib/soundtouch-1.9.2/InterpolateLinear.h
@@ -8,7 +8,7 @@
///
////////////////////////////////////////////////////////////////////////////////
//
-// $Id: InterpolateLinear.h 179 2014-01-06 18:41:42Z oparviai $
+// $Id: InterpolateLinear.h 225 2015-07-26 14:45:48Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
@@ -63,7 +63,7 @@ public:
/// Sets new target rate. Normal rate = 1.0, smaller values represent slower
/// rate, larger faster rates.