Commit 8a486dae authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Workaround spatializer bugs.

(cherry picked from commit 77cc89e3)
(cherry picked from commit 6d4830b8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4c50e9ee
......@@ -35,6 +35,13 @@ private:
inline float comb::process(float input)
{
#if 1
/* FIXME FIXME FIXME
* comb::process is completly broken so ignore it for now */
return 0.0;
#else
float output;
output = undenormalise( buffer[bufidx] );
......@@ -46,6 +53,7 @@ inline float comb::process(float input)
if(++bufidx>=bufsize) bufidx = 0;
return output;
#endif
}
#endif //_comb_
......
......@@ -10,11 +10,11 @@
#include <stdint.h>
#include <math.h>
static inline float undenormalise( float f )
{
union { float f; uint32_t u; } data;
data.f = f;
if( (data.u & 0x7f800000) == 0 )
if( fpclassify( f ) == FP_SUBNORMAL )
return 0.0;
return f;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment