comparison gui/win32/interface.c @ 37152:3dca2acb98ac

Remove pointless code. Volume will be set exactly like this by the code just following. Reported by Stephen Sheldon, sfsheldo gmail com.
author ib
date Wed, 06 Aug 2014 16:36:30 +0000
parents c63629427fde
children ee0a7558379e
comparison
equal deleted inserted replaced
37151:c63629427fde 37152:3dca2acb98ac
319 float l,r; 319 float l,r;
320 320
321 if (guiInfo.Playing == GUI_STOP) 321 if (guiInfo.Playing == GUI_STOP)
322 break; 322 break;
323 323
324 if (guiInfo.Balance == 50.0f)
325 mixer_setvolume(mixer, guiInfo.Volume, guiInfo.Volume);
326
327 l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0; 324 l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0;
328 r = guiInfo.Volume * guiInfo.Balance / 50.0; 325 r = guiInfo.Volume * guiInfo.Balance / 50.0;
329 326
330 if (l > guiInfo.Volume) l=guiInfo.Volume; 327 if (l > guiInfo.Volume) l=guiInfo.Volume;
331 if (r > guiInfo.Volume) r=guiInfo.Volume; 328 if (r > guiInfo.Volume) r=guiInfo.Volume;