PcmMix: use negative value instead of NaN for addition

Avoid NaN to allow -ffast-math.
This commit is contained in:
Max Kellermann
2013-10-30 17:23:49 +01:00
parent c4d3030d24
commit 50dc98367c
3 changed files with 6 additions and 7 deletions

View File

@@ -36,8 +36,6 @@
#include "util/Domain.hxx"
#include "Log.hxx"
#include <cmath>
#include <glib.h>
#include <string.h>
@@ -783,7 +781,7 @@ Player::PlayNextChunk()
chunk->mix_ratio = ((float)cross_fade_position)
/ cross_fade_chunks;
} else {
chunk->mix_ratio = nan("");
chunk->mix_ratio = -1;
}
if (other_chunk->IsEmpty()) {