summaryrefslogtreecommitdiff
path: root/audio/audacity/patches
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-12-10 14:23:44 +0000
committerjperkin <jperkin@pkgsrc.org>2013-12-10 14:23:44 +0000
commit6ddaaa5513cf58440df8c648036642cec6149d66 (patch)
tree774699fd64f7d441c2962a621ef53d3d53430643 /audio/audacity/patches
parentb317643b142ed3a6571493d9f6d94ecfbe30b528 (diff)
downloadpkgsrc-6ddaaa5513cf58440df8c648036642cec6149d66.tar.gz
Fix pow() argument types, fixes SunOS. Patch from Sebastian Wiedenroth.
Diffstat (limited to 'audio/audacity/patches')
-rw-r--r--audio/audacity/patches/patch-lib-src_soundtouch_source_SoundTouch_FIRFilter.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/audacity/patches/patch-lib-src_soundtouch_source_SoundTouch_FIRFilter.cpp b/audio/audacity/patches/patch-lib-src_soundtouch_source_SoundTouch_FIRFilter.cpp
new file mode 100644
index 00000000000..e0b69b0ee7d
--- /dev/null
+++ b/audio/audacity/patches/patch-lib-src_soundtouch_source_SoundTouch_FIRFilter.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_soundtouch_source_SoundTouch_FIRFilter.cpp,v 1.1 2013/12/10 14:23:44 jperkin Exp $
+
+Fix pow() argument types.
+
+--- lib-src/soundtouch/source/SoundTouch/FIRFilter.cpp.orig 2006-11-15 04:12:11.000000000 +0000
++++ lib-src/soundtouch/source/SoundTouch/FIRFilter.cpp
+@@ -177,7 +177,7 @@ void FIRFilter::setCoefficients(const SA
+ assert(length == newLength);
+
+ resultDivFactor = uResultDivFactor;
+- resultDivider = (SAMPLETYPE)pow(2, resultDivFactor);
++ resultDivider = (SAMPLETYPE)pow(2, (double)resultDivFactor);
+
+ delete[] filterCoeffs;
+ filterCoeffs = new SAMPLETYPE[length];