use correct types in rdpsnd_dsp_softvol

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1261 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2006-09-17 15:49:14 +00:00
parent 306a72ffe9
commit 45cc3f12f4

View File

@ -55,7 +55,7 @@ rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * form
if (format->wBitsPerSample == 8)
{
char val;
sint8 val;
while (posout < buffer + size)
{
@ -72,7 +72,7 @@ rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * form
}
else
{
short val;
sint16 val;
while (posout < buffer + size)
{
@ -92,7 +92,7 @@ rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * form
}
}
DEBUG(("using softvol with shifts left: %d, right: %d (%d/%d)\n", factor_left, factor_right,
DEBUG(("using softvol with factors left: %d, right: %d (%d/%d)\n", factor_left, factor_right,
format->wBitsPerSample, format->nChannels));
}