mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-18 08:56:42 -05:00
Fixed normalization
This commit is contained in:
parent
c4a0be5c5c
commit
a81bf16bc9
1 changed files with 3 additions and 3 deletions
|
|
@ -789,14 +789,14 @@ static inline void _norms(const void *src, void *dst,
|
|||
int32_t s;
|
||||
switch (src_wid) {
|
||||
case 8:
|
||||
s = *(int8_t*)src;
|
||||
s = *(int32_t*)src;
|
||||
if (s >= 0x7f)
|
||||
goto _max;
|
||||
else if (s <= -0x80)
|
||||
goto _min;
|
||||
break;
|
||||
case 16:
|
||||
s = *(int16_t*)src;
|
||||
s = *(int32_t*)src;
|
||||
if (s >= 0x7fff)
|
||||
goto _max;
|
||||
else if (s <= -0x8000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue