Fixed WavPack floating point input handling

CQTexperiment
Chris Moeller 2013-09-30 12:31:16 -07:00
parent 87198d04c0
commit 63b8f55dcf
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}