(svn r19505) -Codechange: silence a gcc<4.2 warning

This commit is contained in:
smatz 2010-03-23 19:48:24 +00:00
parent 6176e30d40
commit fe35a0cacf
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}