I’m having problems with a VST in different hosts, and the fail is in the roundToIntAccurate() function, which I thought that was an exact way to round possitive values, but it seems that 0.5 drives crazy both functions, and they offer different results if the integer part is odd or even.
From roundDoubleToInt doc:
Does it mean that roundToIntAccurate can round up or round down randomly values with floating point 0.5 like roundDoubleToInt does? If it does that, which is the drawback from using roundDoubleToInt vs using roundToIntAccurate?
Edit: The most hosts work fine, as expected, rounding 0.5 towards up, except some like FL Studio 10, that round odd and even numbers as it wants. It seems that roundToIntAccurate doesn’t have effect in FL Studio, and it works like roundDoubleToInt