From 1ee09f66887adad285811abe69494b3b49d84542 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Mon, 18 Sep 2006 10:20:02 +0000 Subject: [PATCH] replace constants with their define git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1269 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdpsnd_dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdpsnd_dsp.c b/rdpsnd_dsp.c index 88f8f4c..277f749 100644 --- a/rdpsnd_dsp.c +++ b/rdpsnd_dsp.c @@ -45,8 +45,8 @@ rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * form if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME)) return; - factor_left = (softvol_left * 256) / 65535; - factor_right = (softvol_right * 256) / 65535; + factor_left = (softvol_left * 256) / MAX_VOLUME; + factor_right = (softvol_right * 256) / MAX_VOLUME; if (format->nChannels == 1) {