mirror of
https://gitee.com/openharmony/third_party_alsa-lib
synced 2024-12-02 12:56:45 +00:00
mulaw cleaning
This commit is contained in:
parent
083e9a2b09
commit
684703b387
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user