From 0ba37e23d9d7c344be1acd86cd6e620f01a7c8e3 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 2 Aug 2004 18:47:09 +0000 Subject: [PATCH] Avoid using round(), which is unportable. --- dlls/dsound/mixer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index f8ec1a9a10b..d93597e508c 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -20,7 +20,6 @@ */ #include "config.h" -#define _GNU_SOURCE /* for round() in math.h */ #include #include #include @@ -85,17 +84,17 @@ void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan) right=600 * log(((double)volpan->dwTotalRightAmpFactor) / 0xffff) / log(2); if (leftlVolume=round(right); + volpan->lVolume=right; volpan->dwVolAmpFactor=volpan->dwTotalRightAmpFactor; } else { - volpan->lVolume=round(left); + volpan->lVolume=left; volpan->dwVolAmpFactor=volpan->dwTotalLeftAmpFactor; } if (volpan->lVolume < -10000) volpan->lVolume=-10000; - volpan->lPan=round(right-left); + volpan->lPan=right-left; if (volpan->lPan < -10000) volpan->lPan=-10000;