Hello,
I’m using the LinearSmoothedValue
class with classes representing SIMD registers. In Xcode this is fine but on MSVC the constructor and setValue()
methods have arguments passed by value, which can’t be aligned (apparently) and references or pointers need to be used.
Could these use the PARAMETER_TYPE
macro like this:
LinearSmoothedValue (PARAMETER_TYPE (FloatType) initialValue) noexcept
: currentValue (initialValue), target (initialValue), step (0), countdown (0), stepsToTarget (0)
{
}
/** Set a new target value. */
void setValue (PARAMETER_TYPE (FloatType) newValue) noexcept
{
if (target != newValue)
{
target = newValue;
countdown = stepsToTarget;
if (countdown <= 0)
currentValue = target;
else
step = (target - currentValue) / (FloatType) countdown;
}
}