aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-wavpack
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2011-06-27 11:24:25 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2011-06-27 11:24:25 +0000
commita14f667c9c65fb3705e574a39ed23ef68625d39f (patch)
treea263502e6f8038419d952265201a238c8a278ce1 /audio/xmms-wavpack
parentf5cd9f2ec9c23abb2d4bfe601f88784cd41b7df3 (diff)
downloadports-a14f667c9c65fb3705e574a39ed23ef68625d39f.tar.gz
ports-a14f667c9c65fb3705e574a39ed23ef68625d39f.zip
Notes
Diffstat (limited to 'audio/xmms-wavpack')
-rw-r--r--audio/xmms-wavpack/files/patch-src_libwavpack.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/xmms-wavpack/files/patch-src_libwavpack.cpp b/audio/xmms-wavpack/files/patch-src_libwavpack.cpp
index 58ef955b1607..276ada4593c8 100644
--- a/audio/xmms-wavpack/files/patch-src_libwavpack.cpp
+++ b/audio/xmms-wavpack/files/patch-src_libwavpack.cpp
@@ -1,5 +1,5 @@
--- src/libwavpack.cpp.orig 2009-09-28 04:52:56.000000000 +0200
-+++ src/libwavpack.cpp 2009-10-04 22:03:00.000000000 +0200
++++ src/libwavpack.cpp 2011-06-27 13:19:20.000000000 +0200
@@ -40,7 +40,7 @@ extern "C" {
#define M_LN10 2.3025850929940456840179914546843642
#endif
@@ -9,6 +9,15 @@
#define BUFFER_SIZE 256 // read buffer size, in samples
extern "C" InputPlugin * get_iplugin_info(void);
+@@ -167,7 +167,7 @@ public:
+ int tsamples = num_samples * num_channels;
+
+ if (!(WavpackGetMode (ctx) & MODE_FLOAT)) {
+- float scaler = (float) (1.0 / ((unsigned int32_t) 1 << (bytes_per_sample * 8 - 1)));
++ float scaler = (float) (1.0 / ((uint32_t) 1 << (bytes_per_sample * 8 - 1)));
+ float *fptr = (float *) input;
+ int32_t *lptr = input;
+ int cnt = tsamples;
@@ -362,7 +362,7 @@ convertUTF8toLocale(char *utf8)
size_t in_left = strlen(utf8);
size_t out_left = 2 * in_left + 1;