mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
mulaw cleaning
This commit is contained in:
parent
083e9a2b09
commit
684703b387
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ static unsigned char s16_to_ulaw(int pcm_val) /* 2's complement (16-bit range) *
|
||||||
unsigned char uval;
|
unsigned char uval;
|
||||||
|
|
||||||
if (pcm_val < 0) {
|
if (pcm_val < 0) {
|
||||||
pcm_val = -pcm_val + 0x84;
|
pcm_val = 0x84 - pcm_val;
|
||||||
mask = 0x7f;
|
mask = 0x7f;
|
||||||
} else {
|
} else {
|
||||||
pcm_val += 0x84;
|
pcm_val += 0x84;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue