replace constants with their define
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1269 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
d8d445f63d
commit
1ee09f6688
@ -45,8 +45,8 @@ rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * form
|
|||||||
if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME))
|
if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
factor_left = (softvol_left * 256) / 65535;
|
factor_left = (softvol_left * 256) / MAX_VOLUME;
|
||||||
factor_right = (softvol_right * 256) / 65535;
|
factor_right = (softvol_right * 256) / MAX_VOLUME;
|
||||||
|
|
||||||
if (format->nChannels == 1)
|
if (format->nChannels == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user