From 63b8f55dcf3d8f3b4039333350e0e5873443a72f Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Mon, 30 Sep 2013 12:31:16 -0700 Subject: [PATCH] Fixed WavPack floating point input handling --- Plugins/WavPack/WavPackDecoder.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugins/WavPack/WavPackDecoder.m b/Plugins/WavPack/WavPackDecoder.m index 85511a443..3575f547e 100644 --- a/Plugins/WavPack/WavPackDecoder.m +++ b/Plugins/WavPack/WavPackDecoder.m @@ -170,8 +170,7 @@ int32_t WriteBytesProc(void *ds, void *data, int32_t bcount) if(f > 1.0) { f = 1.0; } if(f < -1.0) { f = -1.0; } - // *alias32++ = (int32_t) (f * 2147483647.0); - *alias32++ = (int32_t) (f * 32767.0); + *alias32++ = (int32_t) (f * 2147483647.0); } }