openbsd-ports/audio/xmms-wavpack/patches/patch-src_libwavpack_cpp

22 lines
965 B
Plaintext

$OpenBSD: patch-src_libwavpack_cpp,v 1.2 2009/10/04 16:54:30 naddy Exp $
--- src/libwavpack.cpp.orig Mon Sep 28 04:52:56 2009
+++ src/libwavpack.cpp Sun Oct 4 18:36:26 2009
@@ -40,7 +40,7 @@ extern "C" {
#define M_LN10 2.3025850929940456840179914546843642
#endif
-#define DBG(format, args...) fprintf(stderr, format, ## args)
+#define DBG(format, args...) //fprintf(stderr, format, ## args)
#define BUFFER_SIZE 256 // read buffer size, in samples
extern "C" InputPlugin * get_iplugin_info(void);
@@ -167,7 +167,7 @@ class WavpackDecoder (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;