Hi

/The guitarix example implementation produce here some compiler warnings 
like this:

   warning: comparison of constant ‘99’ with boolean expression is 
always true [-Wbool-compare]
    double fTemp5 = ((int(((0 < fTemp4) < 99)))?0:(fTemp3 - fTemp4));

It is introduced by the following function
/
//-- Bound factor of interpolation : factor-index if still in the table 
boudaries, 0 otherwise
boundFactor(size, factor, index) = 0<index<size-1, factor - index, 0 : 
select2;

Replacing the function with:

//-- Bound factor of interpolation : if index<0 return 0 | if 
index>size-1 return size-1
boundFactor(size, factor, index) = select2(0<index, 
boundupperFactor(size, factor, index), 0) with {
     boundupperFactor(size, factor, index) = select2(index<size-1, 
size-1 , factor - index);
};

avoid the warnings.

regards
hermann


------------------------------------------------------------------------------
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to