FreeCalypso > hg > gsm-codec-lib
comparison libgsmhr1/unpack_frame.c @ 508:c275e57132f8
libgsmhr1/{pack,unpack}_frame.c: comment fix
there is only one unvoiced mode, hence it should be singular
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 17 Aug 2024 21:45:34 +0000 |
parents | 4d80730683d4 |
children |
comparison
equal
deleted
inserted
replaced
507:06578223a752 | 508:c275e57132f8 |
---|---|
41 params[15] |= (*c >> 6) & 0x3; | 41 params[15] |= (*c >> 6) & 0x3; |
42 params[16] = (*c++ & 0x3F) << 3; | 42 params[16] = (*c++ & 0x3F) << 3; |
43 params[16] |= (*c >> 5) & 0x7; | 43 params[16] |= (*c >> 5) & 0x7; |
44 params[17] = *c++ & 0x1F; | 44 params[17] = *c++ & 0x1F; |
45 } else { | 45 } else { |
46 /* unvoiced modes */ | 46 /* unvoiced mode */ |
47 params[6] = (*c++ & 0xF) << 3; | 47 params[6] = (*c++ & 0xF) << 3; |
48 params[6] |= (*c >> 5) & 0x7; | 48 params[6] |= (*c >> 5) & 0x7; |
49 params[7] = (*c++ & 0x1F) << 2; | 49 params[7] = (*c++ & 0x1F) << 2; |
50 params[7] |= (*c >> 6) & 0x3; | 50 params[7] |= (*c >> 6) & 0x3; |
51 params[8] = (*c >> 1) & 0x1F; | 51 params[8] = (*c >> 1) & 0x1F; |