Commit 77cc89e3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Workaround spatializer bugs.

parent 32b11b0a
...@@ -35,6 +35,13 @@ private: ...@@ -35,6 +35,13 @@ private:
inline float comb::process(float input) 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; float output;
output = undenormalise( buffer[bufidx] ); output = undenormalise( buffer[bufidx] );
...@@ -46,6 +53,7 @@ inline float comb::process(float input) ...@@ -46,6 +53,7 @@ inline float comb::process(float input)
if(++bufidx>=bufsize) bufidx = 0; if(++bufidx>=bufsize) bufidx = 0;
return output; return output;
#endif
} }
#endif //_comb_ #endif //_comb_
......
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
static inline float undenormalise( float f ) static inline float undenormalise( float f )
{ {
union { float f; uint32_t u; } data; if( fpclassify( f ) == FP_SUBNORMAL )
data.f = f;
if( (data.u & 0x7f800000) == 0 )
return 0.0; return 0.0;
return f; 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