mulaw cleaning

This commit is contained in:
Abramo Bagnara 2000-12-27 10:10:18 +00:00
parent 083e9a2b09
commit 684703b387

View File

@ -91,7 +91,7 @@ static unsigned char s16_to_ulaw(int pcm_val) /* 2's complement (16-bit range) *
unsigned char uval;
if (pcm_val < 0) {
pcm_val = -pcm_val + 0x84;
pcm_val = 0x84 - pcm_val;
mask = 0x7f;
} else {
pcm_val += 0x84;