CrossFade: use negative value for invalid MixRamp overlap

Avoid NaN to allow -ffast-math.
This commit is contained in:
Max Kellermann
2013-10-30 17:06:40 +01:00
parent c0c0526fc8
commit c6f101884b
2 changed files with 13 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ public:
free(foo);
foo = strdup(input);
CPPUNIT_ASSERT(std::isnan(mixramp_interpolate(foo, 6.1)));
CPPUNIT_ASSERT(mixramp_interpolate(foo, 6.1) < 0);
free(foo);
foo = strdup(input);