From 50dc98367ccb6155a15c440df5e32cf2b8b719ea Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 17:23:49 +0100 Subject: PcmMix: use negative value instead of NaN for addition Avoid NaN to allow -ffast-math. --- src/PlayerThread.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/PlayerThread.cxx') diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index cb45885d5..7105e48d3 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -36,8 +36,6 @@ #include "util/Domain.hxx" #include "Log.hxx" -#include - #include #include @@ -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()) { -- cgit v1.2.3