From fe35a0cacf9da67e11004391d224d63e9bf45145 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 23 Mar 2010 19:48:24 +0000 Subject: (svn r19505) -Codechange: silence a gcc<4.2 warning --- src/mixer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mixer.cpp b/src/mixer.cpp index 36c982bec..7742c55a1 100644 --- a/src/mixer.cpp +++ b/src/mixer.cpp @@ -196,8 +196,8 @@ void MxSetChannelVolume(MixerChannel *mc, uint volume, float pan) { /* Use sinusoidal pan to maintain overall sound power level regardless * of position. */ - mc->volume_left = volume * sin((1.0 - pan) * M_PI / 2.0); - mc->volume_right = volume * sin(pan * M_PI / 2.0); + mc->volume_left = (uint)(sin((1.0 - pan) * M_PI / 2.0) * volume); + mc->volume_right = (uint)(sin(pan * M_PI / 2.0) * volume); } -- cgit v1.2.3-70-g09d2